#2F42A1#2F42A1
#2F42A1 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.3% C 0.155 H 269.9°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).
Color values
| HEX | #2F42A1 |
|---|---|
| RGB | rgb(47, 66, 161) |
| HSL | hsl(230, 55%, 41%) |
| HSV | hsv(230, 71%, 63%) |
| CMYK | cmyk(70.8%, 59%, 0%, 36.9%) |
| CIE-LAB | lab(31.97, 25.68, -53.73) |
| CIE-LCH | lch(31.97, 59.55, 295.54°) |
| OKLab | oklab(42.34% -0.0003 -0.1549) |
| OKLCH | oklch(42.34% 0.155 269.9) |
| XYZ | xyz(9.5513, 7.0730, 34.5732) |
| Luminance | 0.0707 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.49
Cobalt
#0047AB
ΔE00 4.14
Blueberry
#464196
ΔE00 4.27
Blue Blue
#2242C7
ΔE00 5.14
Cobalt (survey)
#1E488F
ΔE00 5.22
Ocean Blue
#4F42B5
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F42A1 #A18E2F
analogous
#2F7BA1 #2F42A1 #552FA1
triadic
#2F42A1 #A12F42 #42A12F
tetradic
#2F42A1 #A12F7B #A18E2F #2FA155
square
#2F42A1 #A12F7B #A18E2F #2FA155
split-complementary
#2F42A1 #A1552F #7BA12F
monochromatic
#131B42 #212F72 #2F42A1 #455BC9 #7484D6
Accessibility & contrast
On white
8.70
#2F42A1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.41
#2F42A1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F42A1
8.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F42A1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F42A1 | 1.00 | 8.70 | 2.41 | 8.70 |
| #FFFFFF | 8.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051A4
Deuteranopia (green-blind)
#00469F
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #2f42a1; /* rgb */ color: rgb(47, 66, 161); /* oklch */ color: oklch(42.3% 0.155 269.9);
Tailwind
colors: {
custom: {
50: '#7776be',
500: '#2f42a1',
950: '#000000',
},
}SCSS
$custom: #2f42a1; $custom-light: #7776be; $custom-dark: #000000;
JSON
{
"hex": "#2f42a1",
"rgb": {
"r": 47,
"g": 66,
"b": 161
},
"hsl": {
"h": 230,
"s": 54.808,
"l": 40.784
},
"oklch": {
"l": 0.42344,
"c": 0.15489,
"h": 269.9
},
"luminance": 0.07074
}Semantic roles & 50–950 ramp
primary
#2F42A1
secondary
#BEB16E
accent
#C54ADE
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81