Recognised as Colour
#2040CB
- #2040CB
- Blue
- Dark
- Nearest: Medium slateblue
#2040CB is a blue with RGB values 32, 64, 203 and HSL 229°, 73%, 46%. It is a dark colour, so white text on it reaches 7.9:1 contrast (AAA for normal text). The nearest named colour is Medium slateblue.
Colour values
#2040CB#2040CB
HEX#2040CB
RGBrgb(32, 64, 203)
RGB (0–1)0.1255, 0.251, 0.7961
RGB percentages12.5%, 25.1%, 79.6%
HSLhsl(228.8, 72.8%, 46.1%)
HSV / HSBhsv(228.8, 84.2%, 79.6%)
CMYK84.2%, 68.5%, 0%, 20.4%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer2,113,739
CSS custom property--colour: #2040CB;
Brightness & contrast
Relative luminance0.08286WCAG 2.x, 0 is black and 1 is white
Perceived brightness86.1 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 7.9:1
Contrast with white7.9:1WCAG normal text: AAA
Contrast with black2.66:1WCAG normal text: Fail
Greyscale equivalent#434343
Inverted#DFBF34
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text7.9:1WCAG large text: AAA
Contrast with black, large text2.66:1WCAG large text: Fail
Named colours
Hue familyblue
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#CBAB20
Analogous#2095CB, #5620CB
Triadic#CB2040, #40CB20
Split complementary#CB5620, #95CB20
Tetradic#CB2095, #CBAB20, #20CB56
Tints, shades & saturation
Channel breakdown
R32
G64
B203
Red32 (12.5%)
Green64 (25.1%)
Blue203 (79.6%)
Hue228.77°
Saturation (HSL)72.77%
Lightness46.08%
Dominant channelBlue
Hex per channelR 20 · G 40 · B CB
Keep nerding
Every link below is a page Nerdulator can generate from what it already knows about this value.
Harmonies
Similar named colours
Nerdulate something else
Nothing in mind? Surprise me · today’s page