#2F42A0#2F42A0
#2F42A0 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.3% C 0.153 H 269.9°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).
Color values
| HEX | #2F42A0 |
|---|---|
| RGB | rgb(47, 66, 160) |
| HSL | hsl(230, 55%, 41%) |
| HSV | hsv(230, 71%, 63%) |
| CMYK | cmyk(70.6%, 58.8%, 0%, 37.3%) |
| CIE-LAB | lab(31.89, 25.31, -53.26) |
| CIE-LCH | lch(31.89, 58.97, 295.42°) |
| OKLab | oklab(42.26% -0.0003 -0.1535) |
| OKLCH | oklch(42.26% 0.153 269.9) |
| XYZ | xyz(9.4635, 7.0379, 34.1106) |
| Luminance | 0.0704 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.57
Cobalt
#0047AB
ΔE00 4.15
Blueberry
#464196
ΔE00 4.24
Cobalt (survey)
#1E488F
ΔE00 5.13
Blue Blue
#2242C7
ΔE00 5.29
Ocean Blue
#4F42B5
ΔE00 6.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F42A0 #A08D2F
analogous
#2F7AA0 #2F42A0 #552FA0
triadic
#2F42A0 #A02F42 #42A02F
tetradic
#2F42A0 #A02F7A #A08D2F #2FA055
square
#2F42A0 #A02F7A #A08D2F #2FA055
split-complementary
#2F42A0 #A0552F #7AA02F
monochromatic
#131B41 #212E71 #2F42A0 #445AC8 #7384D6
Accessibility & contrast
On white
8.72
#2F42A0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.41
#2F42A0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F42A0
8.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F42A0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F42A0 | 1.00 | 8.72 | 2.41 | 8.72 |
| #FFFFFF | 8.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050A3
Deuteranopia (green-blind)
#00469E
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #2f42a0; /* rgb */ color: rgb(47, 66, 160); /* oklch */ color: oklch(42.3% 0.153 269.9);
Tailwind
colors: {
custom: {
50: '#7676bd',
500: '#2f42a0',
950: '#000000',
},
}SCSS
$custom: #2f42a0; $custom-light: #7676bd; $custom-dark: #000000;
JSON
{
"hex": "#2f42a0",
"rgb": {
"r": 47,
"g": 66,
"b": 160
},
"hsl": {
"h": 229.912,
"s": 54.589,
"l": 40.588
},
"oklch": {
"l": 0.4226,
"c": 0.15349,
"h": 269.9
},
"luminance": 0.07039
}Semantic roles & 50–950 ramp
primary
#2F42A0
secondary
#BEB06D
accent
#C54ADE
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81