#2F42B4#2F42B4
#2F42B4 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.0% C 0.181 H 269.8°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).
Color values
| HEX | #2F42B4 |
|---|---|
| RGB | rgb(47, 66, 180) |
| HSL | hsl(231, 59%, 45%) |
| HSV | hsv(231, 74%, 71%) |
| CMYK | cmyk(73.9%, 63.3%, 0%, 29.4%) |
| CIE-LAB | lab(33.55, 32.68, -62.52) |
| CIE-LCH | lch(33.55, 70.54, 297.60°) |
| OKLab | oklab(44.01% -0.0005 -0.1807) |
| OKLCH | oklch(44.01% 0.181 269.8) |
| XYZ | xyz(11.3559, 7.7949, 44.0772) |
| Luminance | 0.0780 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.48
Sapphire (survey)
#2138AB
ΔE00 3.15
Ocean Blue
#4F42B5
ΔE00 4.44
Cobalt
#0047AB
ΔE00 4.75
Blue (survey)
#0343DF
ΔE00 5.30
Blueberry
#464196
ΔE00 5.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F42B4 #B4A12F
analogous
#2F84B4 #2F42B4 #5F2FB4
triadic
#2F42B4 #B42F42 #42B42F
tetradic
#2F42B4 #B42F84 #B4A12F #2FB45F
square
#2F42B4 #B42F84 #B4A12F #2FB45F
split-complementary
#2F42B4 #B45F2F #84B42F
monochromatic
#161E53 #223083 #2F42B4 #4F62D1 #808DDE
Accessibility & contrast
On white
8.21
#2F42B4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.56
#2F42B4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F42B4
8.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F42B4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F42B4 | 1.00 | 8.21 | 2.56 | 8.21 |
| #FFFFFF | 8.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#0049B2
Tritanopia (blue-blind)
#006075
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #2f42b4; /* rgb */ color: rgb(47, 66, 180); /* oklch */ color: oklch(44.0% 0.181 269.8);
Tailwind
colors: {
custom: {
50: '#7b76cb',
500: '#2f42b4',
950: '#000000',
},
}SCSS
$custom: #2f42b4; $custom-light: #7b76cb; $custom-dark: #000000;
JSON
{
"hex": "#2f42b4",
"rgb": {
"r": 47,
"g": 66,
"b": 180
},
"hsl": {
"h": 231.429,
"s": 58.59,
"l": 44.51
},
"oklch": {
"l": 0.44005,
"c": 0.18066,
"h": 269.8
},
"luminance": 0.07796
}Semantic roles & 50–950 ramp
primary
#2F42B4
secondary
#C7BB78
accent
#CC46E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82