#2F42B1#2F42B1
#2F42B1 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.7% C 0.177 H 269.9°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).
Color values
| HEX | #2F42B1 |
|---|---|
| RGB | rgb(47, 66, 177) |
| HSL | hsl(231, 58%, 44%) |
| HSV | hsv(231, 73%, 69%) |
| CMYK | cmyk(73.4%, 62.7%, 0%, 30.6%) |
| CIE-LAB | lab(33.29, 31.58, -61.16) |
| CIE-LCH | lch(33.29, 68.83, 297.31°) |
| OKLab | oklab(43.74% -0.0004 -0.1767) |
| OKLCH | oklch(43.74% 0.177 269.9) |
| XYZ | xyz(11.0536, 7.6739, 42.4851) |
| Luminance | 0.0767 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.87
Sapphire (survey)
#2138AB
ΔE00 3.03
Cobalt
#0047AB
ΔE00 4.56
Ocean Blue
#4F42B5
ΔE00 4.59
Blueberry
#464196
ΔE00 5.31
Blue (survey)
#0343DF
ΔE00 5.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F42B1 #B19E2F
analogous
#2F83B1 #2F42B1 #5D2FB1
triadic
#2F42B1 #B12F42 #42B12F
tetradic
#2F42B1 #B12F83 #B19E2F #2FB15D
square
#2F42B1 #B12F83 #B19E2F #2FB15D
split-complementary
#2F42B1 #B15D2F #83B12F
monochromatic
#151E50 #223081 #2F42B1 #4D60D0 #7E8CDD
Accessibility & contrast
On white
8.28
#2F42B1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.53
#2F42B1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F42B1
8.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F42B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F42B1 | 1.00 | 8.28 | 2.53 | 8.28 |
| #FFFFFF | 8.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#0048AF
Tritanopia (blue-blind)
#005F73
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #2f42b1; /* rgb */ color: rgb(47, 66, 177); /* oklch */ color: oklch(43.7% 0.177 269.9);
Tailwind
colors: {
custom: {
50: '#7a76c9',
500: '#2f42b1',
950: '#000000',
},
}SCSS
$custom: #2f42b1; $custom-light: #7a76c9; $custom-dark: #000000;
JSON
{
"hex": "#2f42b1",
"rgb": {
"r": 47,
"g": 66,
"b": 177
},
"hsl": {
"h": 231.231,
"s": 58.036,
"l": 43.922
},
"oklch": {
"l": 0.43736,
"c": 0.17668,
"h": 269.9
},
"luminance": 0.07675
}Semantic roles & 50–950 ramp
primary
#2F42B1
secondary
#C5BA76
accent
#CB47E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82