#2F40C9#2F40C9
#2F40C9 is a mid, highly saturated blue. Relative luminance 0.085; OKLCH L 45.6% C 0.210 H 269.8°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).
Color values
| HEX | #2F40C9 |
|---|---|
| RGB | rgb(47, 64, 201) |
| HSL | hsl(233, 62%, 49%) |
| HSV | hsv(233, 77%, 79%) |
| CMYK | cmyk(76.6%, 68.2%, 0%, 21.2%) |
| CIE-LAB | lab(34.98, 41.44, -72.51) |
| CIE-LCH | lch(34.98, 83.52, 299.75°) |
| OKLab | oklab(45.63% -0.0007 -0.2099) |
| OKLCH | oklch(45.63% 0.21 269.8) |
| XYZ | xyz(13.5447, 8.4867, 56.1713) |
| Luminance | 0.0849 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 1.38
Blue (survey)
#0343DF
ΔE00 2.98
Ocean Blue
#4F42B5
ΔE00 4.40
Blue With A Hint Of Purple
#533CC6
ΔE00 4.44
Sapphire (survey)
#2138AB
ΔE00 4.82
Blurple
#5539CC
ΔE00 4.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F40C9 #C9B82F
analogous
#2F8DC9 #2F40C9 #6B2FC9
triadic
#2F40C9 #C92F40 #40C92F
tetradic
#2F40C9 #C92F8D #C9B82F #2FC96B
square
#2F40C9 #C92F8D #C9B82F #2FC96B
split-complementary
#2F40C9 #C96B2F #8DC92F
monochromatic
#182066 #233097 #2F40C9 #5C6AD9 #8E97E5
Accessibility & contrast
On white
7.78
#2F40C9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.70
#2F40C9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F40C9
7.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F40C9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F40C9 | 1.00 | 7.78 | 2.70 | 7.78 |
| #FFFFFF | 7.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005ACD
Deuteranopia (green-blind)
#004BC6
Tritanopia (blue-blind)
#00667F
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #2f40c9; /* rgb */ color: rgb(47, 64, 201); /* oklch */ color: oklch(45.6% 0.210 269.8);
Tailwind
colors: {
custom: {
50: '#8075db',
500: '#2f40c9',
950: '#000000',
},
}SCSS
$custom: #2f40c9; $custom-light: #8075db; $custom-dark: #000000;
JSON
{
"hex": "#2f40c9",
"rgb": {
"r": 47,
"g": 64,
"b": 201
},
"hsl": {
"h": 233.377,
"s": 62.097,
"l": 48.627
},
"oklch": {
"l": 0.45626,
"c": 0.20991,
"h": 269.8
},
"luminance": 0.08488
}Semantic roles & 50–950 ramp
primary
#2F40C9
secondary
#CFC785
accent
#D343E5
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83