#2F40A6#2F40A6
#2F40A6 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.4% C 0.164 H 270.4°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).
Color values
| HEX | #2F40A6 |
|---|---|
| RGB | rgb(47, 64, 166) |
| HSL | hsl(231, 56%, 42%) |
| HSV | hsv(231, 72%, 65%) |
| CMYK | cmyk(71.7%, 61.4%, 0%, 34.9%) |
| CIE-LAB | lab(31.86, 28.85, -56.93) |
| CIE-LCH | lch(31.86, 63.82, 296.88°) |
| OKLab | oklab(42.39% 0.0013 -0.1643) |
| OKLCH | oklch(42.39% 0.164 270.4) |
| XYZ | xyz(9.8863, 7.0233, 36.9036) |
| Luminance | 0.0702 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.57
Blueberry
#464196
ΔE00 4.37
Blue Blue
#2242C7
ΔE00 4.41
Cobalt
#0047AB
ΔE00 4.62
Ocean Blue
#4F42B5
ΔE00 5.23
Cobalt (survey)
#1E488F
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F40A6 #A6952F
analogous
#2F7CA6 #2F40A6 #5A2FA6
triadic
#2F40A6 #A62F40 #40A62F
tetradic
#2F40A6 #A62F7C #A6952F #2FA65A
square
#2F40A6 #A62F7C #A6952F #2FA65A
split-complementary
#2F40A6 #A65A2F #7CA62F
monochromatic
#141B47 #212E76 #2F40A6 #475ACB #7785D8
Accessibility & contrast
On white
8.73
#2F40A6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.40
#2F40A6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F40A6
8.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F40A6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F40A6 | 1.00 | 8.73 | 2.40 | 8.73 |
| #FFFFFF | 8.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051A9
Deuteranopia (green-blind)
#0046A4
Tritanopia (blue-blind)
#005A6D
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #2f40a6; /* rgb */ color: rgb(47, 64, 166); /* oklch */ color: oklch(42.4% 0.164 270.4);
Tailwind
colors: {
custom: {
50: '#7874c1',
500: '#2f40a6',
950: '#000000',
},
}SCSS
$custom: #2f40a6; $custom-light: #7874c1; $custom-dark: #000000;
JSON
{
"hex": "#2f40a6",
"rgb": {
"r": 47,
"g": 64,
"b": 166
},
"hsl": {
"h": 231.429,
"s": 55.869,
"l": 41.765
},
"oklch": {
"l": 0.42387,
"c": 0.1643,
"h": 270.4
},
"luminance": 0.07024
}Semantic roles & 50–950 ramp
primary
#2F40A6
secondary
#C1B570
accent
#CA49DF
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81