#2F42B9#2F42B9
#2F42B9 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.5% C 0.187 H 269.8°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).
Color values
| HEX | #2F42B9 |
|---|---|
| RGB | rgb(47, 66, 185) |
| HSL | hsl(232, 59%, 45%) |
| HSV | hsv(232, 75%, 73%) |
| CMYK | cmyk(74.6%, 64.3%, 0%, 27.5%) |
| CIE-LAB | lab(33.99, 34.49, -64.76) |
| CIE-LCH | lch(33.99, 73.37, 298.04°) |
| OKLab | oklab(44.46% -0.0007 -0.1872) |
| OKLCH | oklch(44.46% 0.187 269.8) |
| XYZ | xyz(11.8745, 8.0023, 46.8083) |
| Luminance | 0.0800 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 1.85
Sapphire (survey)
#2138AB
ΔE00 3.47
Ocean Blue
#4F42B5
ΔE00 4.28
Blue (survey)
#0343DF
ΔE00 4.66
Cobalt
#0047AB
ΔE00 5.13
Blue With A Hint Of Purple
#533CC6
ΔE00 5.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F42B9 #B9A62F
analogous
#2F87B9 #2F42B9 #612FB9
triadic
#2F42B9 #B92F42 #42B92F
tetradic
#2F42B9 #B92F87 #B9A62F #2FB961
square
#2F42B9 #B92F87 #B9A62F #2FB961
split-complementary
#2F42B9 #B9612F #87B92F
monochromatic
#161F57 #233188 #2F42B9 #5264D3 #8390DF
Accessibility & contrast
On white
8.07
#2F42B9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.60
#2F42B9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F42B9
8.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F42B9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F42B9 | 1.00 | 8.07 | 2.60 | 8.07 |
| #FFFFFF | 8.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0057BD
Deuteranopia (green-blind)
#004AB7
Tritanopia (blue-blind)
#006177
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #2f42b9; /* rgb */ color: rgb(47, 66, 185); /* oklch */ color: oklch(44.5% 0.187 269.8);
Tailwind
colors: {
custom: {
50: '#7c76cf',
500: '#2f42b9',
950: '#000000',
},
}SCSS
$custom: #2f42b9; $custom-light: #7c76cf; $custom-dark: #000000;
JSON
{
"hex": "#2f42b9",
"rgb": {
"r": 47,
"g": 66,
"b": 185
},
"hsl": {
"h": 231.739,
"s": 59.483,
"l": 45.49
},
"oklch": {
"l": 0.4446,
"c": 0.18723,
"h": 269.8
},
"luminance": 0.08004
}Semantic roles & 50–950 ramp
primary
#2F42B9
secondary
#C9BE7B
accent
#CD45E3
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82