#2F42A2#2F42A2
#2F42A2 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.4% C 0.156 H 269.9°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).
Color values
| HEX | #2F42A2 |
|---|---|
| RGB | rgb(47, 66, 162) |
| HSL | hsl(230, 55%, 41%) |
| HSV | hsv(230, 71%, 64%) |
| CMYK | cmyk(71%, 59.3%, 0%, 36.5%) |
| CIE-LAB | lab(32.05, 26.05, -54.21) |
| CIE-LCH | lch(32.05, 60.14, 295.67°) |
| OKLab | oklab(42.43% -0.0003 -0.1563) |
| OKLCH | oklch(42.43% 0.156 269.9) |
| XYZ | xyz(9.6399, 7.1084, 35.0395) |
| Luminance | 0.0711 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.41
Cobalt
#0047AB
ΔE00 4.13
Blueberry
#464196
ΔE00 4.31
Blue Blue
#2242C7
ΔE00 4.99
Cobalt (survey)
#1E488F
ΔE00 5.32
Ocean Blue
#4F42B5
ΔE00 5.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F42A2 #A28F2F
analogous
#2F7BA2 #2F42A2 #552FA2
triadic
#2F42A2 #A22F42 #42A22F
tetradic
#2F42A2 #A22F7B #A28F2F #2FA255
square
#2F42A2 #A22F7B #A28F2F #2FA255
split-complementary
#2F42A2 #A2552F #7BA22F
monochromatic
#131B43 #212F73 #2F42A2 #455BC9 #7585D7
Accessibility & contrast
On white
8.67
#2F42A2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.42
#2F42A2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F42A2
8.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F42A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F42A2 | 1.00 | 8.67 | 2.42 | 8.67 |
| #FFFFFF | 8.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #2f42a2; /* rgb */ color: rgb(47, 66, 162); /* oklch */ color: oklch(42.4% 0.156 269.9);
Tailwind
colors: {
custom: {
50: '#7776be',
500: '#2f42a2',
950: '#000000',
},
}SCSS
$custom: #2f42a2; $custom-light: #7776be; $custom-dark: #000000;
JSON
{
"hex": "#2f42a2",
"rgb": {
"r": 47,
"g": 66,
"b": 162
},
"hsl": {
"h": 230.087,
"s": 55.024,
"l": 40.98
},
"oklch": {
"l": 0.42428,
"c": 0.15628,
"h": 269.9
},
"luminance": 0.07109
}Semantic roles & 50–950 ramp
primary
#2F42A2
secondary
#BFB16E
accent
#C649DE
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81