#2F42AC#2F42AC
#2F42AC is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.3% C 0.170 H 269.9°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).
Color values
| HEX | #2F42AC |
|---|---|
| RGB | rgb(47, 66, 172) |
| HSL | hsl(231, 57%, 43%) |
| HSV | hsv(231, 73%, 67%) |
| CMYK | cmyk(72.7%, 61.6%, 0%, 32.5%) |
| CIE-LAB | lab(32.87, 29.75, -58.87) |
| CIE-LCH | lch(32.87, 65.96, 296.81°) |
| OKLab | oklab(43.29% -0.0003 -0.17) |
| OKLCH | oklch(43.29% 0.17 269.9) |
| XYZ | xyz(10.5644, 7.4782, 39.9084) |
| Luminance | 0.0748 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.97
Blue Blue
#2242C7
ΔE00 3.56
Cobalt
#0047AB
ΔE00 4.31
Blueberry
#464196
ΔE00 4.90
Ocean Blue
#4F42B5
ΔE00 4.91
Cobalt (survey)
#1E488F
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F42AC #AC992F
analogous
#2F80AC #2F42AC #5A2FAC
triadic
#2F42AC #AC2F42 #42AC2F
tetradic
#2F42AC #AC2F80 #AC992F #2FAC5A
square
#2F42AC #AC2F80 #AC992F #2FAC5A
split-complementary
#2F42AC #AC5A2F #80AC2F
monochromatic
#151D4C #22307C #2F42AC #4B5ECE #7B89DB
Accessibility & contrast
On white
8.41
#2F42AC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.50
#2F42AC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F42AC
8.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F42AC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F42AC | 1.00 | 8.41 | 2.50 | 8.41 |
| #FFFFFF | 8.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#0048AA
Tritanopia (blue-blind)
#005D70
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2f42ac; /* rgb */ color: rgb(47, 66, 172); /* oklch */ color: oklch(43.3% 0.170 269.9);
Tailwind
colors: {
custom: {
50: '#7976c6',
500: '#2f42ac',
950: '#000000',
},
}SCSS
$custom: #2f42ac; $custom-light: #7976c6; $custom-dark: #000000;
JSON
{
"hex": "#2f42ac",
"rgb": {
"r": 47,
"g": 66,
"b": 172
},
"hsl": {
"h": 230.88,
"s": 57.078,
"l": 42.941
},
"oklch": {
"l": 0.43292,
"c": 0.16997,
"h": 269.9
},
"luminance": 0.07479
}Semantic roles & 50–950 ramp
primary
#2F42AC
secondary
#C3B774
accent
#C947E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82