#2F42B5#2F42B5
#2F42B5 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.1% C 0.182 H 269.8°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).
Color values
| HEX | #2F42B5 |
|---|---|
| RGB | rgb(47, 66, 181) |
| HSL | hsl(231, 59%, 45%) |
| HSV | hsv(231, 74%, 71%) |
| CMYK | cmyk(74%, 63.5%, 0%, 29%) |
| CIE-LAB | lab(33.64, 33.04, -62.97) |
| CIE-LCH | lch(33.64, 71.11, 297.69°) |
| OKLab | oklab(44.1% -0.0005 -0.182) |
| OKLCH | oklch(44.1% 0.182 269.8) |
| XYZ | xyz(11.4581, 7.8358, 44.6157) |
| Luminance | 0.0784 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.35
Sapphire (survey)
#2138AB
ΔE00 3.21
Ocean Blue
#4F42B5
ΔE00 4.40
Cobalt
#0047AB
ΔE00 4.82
Blue (survey)
#0343DF
ΔE00 5.17
Blueberry
#464196
ΔE00 5.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F42B5 #B5A22F
analogous
#2F85B5 #2F42B5 #5F2FB5
triadic
#2F42B5 #B52F42 #42B52F
tetradic
#2F42B5 #B52F85 #B5A22F #2FB55F
square
#2F42B5 #B52F85 #B5A22F #2FB55F
split-complementary
#2F42B5 #B55F2F #85B52F
monochromatic
#161F54 #223084 #2F42B5 #5062D1 #808EDE
Accessibility & contrast
On white
8.18
#2F42B5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.57
#2F42B5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F42B5
8.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F42B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F42B5 | 1.00 | 8.18 | 2.57 | 8.18 |
| #FFFFFF | 8.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#0049B3
Tritanopia (blue-blind)
#006075
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #2f42b5; /* rgb */ color: rgb(47, 66, 181); /* oklch */ color: oklch(44.1% 0.182 269.8);
Tailwind
colors: {
custom: {
50: '#7b76cc',
500: '#2f42b5',
950: '#000000',
},
}SCSS
$custom: #2f42b5; $custom-light: #7b76cc; $custom-dark: #000000;
JSON
{
"hex": "#2f42b5",
"rgb": {
"r": 47,
"g": 66,
"b": 181
},
"hsl": {
"h": 231.493,
"s": 58.772,
"l": 44.706
},
"oklch": {
"l": 0.44096,
"c": 0.18198,
"h": 269.8
},
"luminance": 0.07837
}Semantic roles & 50–950 ramp
primary
#2F42B5
secondary
#C7BC79
accent
#CC46E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82