#2F42A9#2F42A9
#2F42A9 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.0% C 0.166 H 269.9°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).
Color values
| HEX | #2F42A9 |
|---|---|
| RGB | rgb(47, 66, 169) |
| HSL | hsl(231, 56%, 42%) |
| HSV | hsv(231, 72%, 66%) |
| CMYK | cmyk(72.2%, 60.9%, 0%, 33.7%) |
| CIE-LAB | lab(32.62, 28.64, -57.48) |
| CIE-LCH | lch(32.62, 64.22, 296.49°) |
| OKLab | oklab(43.03% -0.0002 -0.1659) |
| OKLCH | oklch(43.03% 0.166 269.9) |
| XYZ | xyz(10.2795, 7.3643, 38.4081) |
| Luminance | 0.0736 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.02
Blue Blue
#2242C7
ΔE00 3.98
Cobalt
#0047AB
ΔE00 4.20
Blueberry
#464196
ΔE00 4.68
Ocean Blue
#4F42B5
ΔE00 5.15
Cobalt (survey)
#1E488F
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F42A9 #A9962F
analogous
#2F7FA9 #2F42A9 #592FA9
triadic
#2F42A9 #A92F42 #42A92F
tetradic
#2F42A9 #A92F7F #A9962F #2FA959
square
#2F42A9 #A92F7F #A9962F #2FA959
split-complementary
#2F42A9 #A9592F #7FA92F
monochromatic
#141D49 #222F79 #2F42A9 #495DCC #7988DA
Accessibility & contrast
On white
8.49
#2F42A9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.47
#2F42A9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F42A9
8.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F42A9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F42A9 | 1.00 | 8.49 | 2.47 | 8.49 |
| #FFFFFF | 8.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053AC
Deuteranopia (green-blind)
#0047A7
Tritanopia (blue-blind)
#005C6F
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2f42a9; /* rgb */ color: rgb(47, 66, 169); /* oklch */ color: oklch(43.0% 0.166 269.9);
Tailwind
colors: {
custom: {
50: '#7976c3',
500: '#2f42a9',
950: '#000000',
},
}SCSS
$custom: #2f42a9; $custom-light: #7976c3; $custom-dark: #000000;
JSON
{
"hex": "#2f42a9",
"rgb": {
"r": 47,
"g": 66,
"b": 169
},
"hsl": {
"h": 230.656,
"s": 56.481,
"l": 42.353
},
"oklch": {
"l": 0.4303,
"c": 0.1659,
"h": 269.9
},
"luminance": 0.07365
}Semantic roles & 50–950 ramp
primary
#2F42A9
secondary
#C2B572
accent
#C848E0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82