#2F42B3#2F42B3
#2F42B3 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.9% C 0.179 H 269.9°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).
Color values
| HEX | #2F42B3 |
|---|---|
| RGB | rgb(47, 66, 179) |
| HSL | hsl(231, 58%, 44%) |
| HSV | hsv(231, 74%, 70%) |
| CMYK | cmyk(73.7%, 63.1%, 0%, 29.8%) |
| CIE-LAB | lab(33.47, 32.31, -62.06) |
| CIE-LCH | lch(33.47, 69.97, 297.50°) |
| OKLab | oklab(43.92% -0.0005 -0.1793) |
| OKLCH | oklch(43.92% 0.179 269.9) |
| XYZ | xyz(11.2544, 7.7543, 43.5427) |
| Luminance | 0.0775 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.61
Sapphire (survey)
#2138AB
ΔE00 3.10
Ocean Blue
#4F42B5
ΔE00 4.49
Cobalt
#0047AB
ΔE00 4.69
Blue (survey)
#0343DF
ΔE00 5.43
Blueberry
#464196
ΔE00 5.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F42B3 #B3A02F
analogous
#2F84B3 #2F42B3 #5E2FB3
triadic
#2F42B3 #B32F42 #42B32F
tetradic
#2F42B3 #B32F84 #B3A02F #2FB35E
square
#2F42B3 #B32F84 #B3A02F #2FB35E
split-complementary
#2F42B3 #B35E2F #84B32F
monochromatic
#161E52 #223083 #2F42B3 #4F61D1 #7F8DDD
Accessibility & contrast
On white
8.23
#2F42B3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.55
#2F42B3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F42B3
8.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F42B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F42B3 | 1.00 | 8.23 | 2.55 | 8.23 |
| #FFFFFF | 8.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#0049B1
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #2f42b3; /* rgb */ color: rgb(47, 66, 179); /* oklch */ color: oklch(43.9% 0.179 269.9);
Tailwind
colors: {
custom: {
50: '#7b76cb',
500: '#2f42b3',
950: '#000000',
},
}SCSS
$custom: #2f42b3; $custom-light: #7b76cb; $custom-dark: #000000;
JSON
{
"hex": "#2f42b3",
"rgb": {
"r": 47,
"g": 66,
"b": 179
},
"hsl": {
"h": 231.364,
"s": 58.407,
"l": 44.314
},
"oklch": {
"l": 0.43915,
"c": 0.17934,
"h": 269.9
},
"luminance": 0.07755
}Semantic roles & 50–950 ramp
primary
#2F42B3
secondary
#C6BB78
accent
#CB46E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82