#2F42A3#2F42A3
#2F42A3 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.5% C 0.158 H 269.9°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).
Color values
| HEX | #2F42A3 |
|---|---|
| RGB | rgb(47, 66, 163) |
| HSL | hsl(230, 55%, 41%) |
| HSV | hsv(230, 71%, 64%) |
| CMYK | cmyk(71.2%, 59.5%, 0%, 36.1%) |
| CIE-LAB | lab(32.13, 26.42, -54.68) |
| CIE-LCH | lch(32.13, 60.73, 295.79°) |
| OKLab | oklab(42.51% -0.0003 -0.1577) |
| OKLCH | oklch(42.51% 0.158 269.9) |
| XYZ | xyz(9.7291, 7.1441, 35.5095) |
| Luminance | 0.0714 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.33
Cobalt
#0047AB
ΔE00 4.12
Blueberry
#464196
ΔE00 4.35
Blue Blue
#2242C7
ΔE00 4.85
Cobalt (survey)
#1E488F
ΔE00 5.42
Ocean Blue
#4F42B5
ΔE00 5.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F42A3 #A3902F
analogous
#2F7CA3 #2F42A3 #562FA3
triadic
#2F42A3 #A32F42 #42A32F
tetradic
#2F42A3 #A32F7C #A3902F #2FA356
square
#2F42A3 #A32F7C #A3902F #2FA356
split-complementary
#2F42A3 #A3562F #7CA32F
monochromatic
#141C44 #212F73 #2F42A3 #465BCA #7585D7
Accessibility & contrast
On white
8.65
#2F42A3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.43
#2F42A3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F42A3
8.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F42A3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F42A3 | 1.00 | 8.65 | 2.43 | 8.65 |
| #FFFFFF | 8.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051A6
Deuteranopia (green-blind)
#0046A1
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #2f42a3; /* rgb */ color: rgb(47, 66, 163); /* oklch */ color: oklch(42.5% 0.158 269.9);
Tailwind
colors: {
custom: {
50: '#7776bf',
500: '#2f42a3',
950: '#000000',
},
}SCSS
$custom: #2f42a3; $custom-light: #7776bf; $custom-dark: #000000;
JSON
{
"hex": "#2f42a3",
"rgb": {
"r": 47,
"g": 66,
"b": 163
},
"hsl": {
"h": 230.172,
"s": 55.238,
"l": 41.176
},
"oklch": {
"l": 0.42513,
"c": 0.15766,
"h": 269.9
},
"luminance": 0.07145
}Semantic roles & 50–950 ramp
primary
#2F42A3
secondary
#BFB26F
accent
#C649DF
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81