#2F42AA#2F42AA
#2F42AA is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.1% C 0.167 H 269.9°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).
Color values
| HEX | #2F42AA |
|---|---|
| RGB | rgb(47, 66, 170) |
| HSL | hsl(231, 57%, 43%) |
| HSV | hsv(231, 72%, 67%) |
| CMYK | cmyk(72.4%, 61.2%, 0%, 33.3%) |
| CIE-LAB | lab(32.71, 29.01, -57.95) |
| CIE-LCH | lch(32.71, 64.80, 296.60°) |
| OKLab | oklab(43.12% -0.0003 -0.1673) |
| OKLCH | oklch(43.12% 0.167 269.9) |
| XYZ | xyz(10.3737, 7.4020, 38.9044) |
| Luminance | 0.0740 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.00
Blue Blue
#2242C7
ΔE00 3.84
Cobalt
#0047AB
ΔE00 4.23
Blueberry
#464196
ΔE00 4.75
Ocean Blue
#4F42B5
ΔE00 5.07
Cobalt (survey)
#1E488F
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F42AA #AA972F
analogous
#2F7FAA #2F42AA #5A2FAA
triadic
#2F42AA #AA2F42 #42AA2F
tetradic
#2F42AA #AA2F7F #AA972F #2FAA5A
square
#2F42AA #AA2F7F #AA972F #2FAA5A
split-complementary
#2F42AA #AA5A2F #7FAA2F
monochromatic
#141D4A #222F7A #2F42AA #495ECD #7988DA
Accessibility & contrast
On white
8.47
#2F42AA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.48
#2F42AA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F42AA
8.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F42AA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F42AA | 1.00 | 8.47 | 2.48 | 8.47 |
| #FFFFFF | 8.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053AD
Deuteranopia (green-blind)
#0047A8
Tritanopia (blue-blind)
#005C6F
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2f42aa; /* rgb */ color: rgb(47, 66, 170); /* oklch */ color: oklch(43.1% 0.167 269.9);
Tailwind
colors: {
custom: {
50: '#7976c4',
500: '#2f42aa',
950: '#000000',
},
}SCSS
$custom: #2f42aa; $custom-light: #7976c4; $custom-dark: #000000;
JSON
{
"hex": "#2f42aa",
"rgb": {
"r": 47,
"g": 66,
"b": 170
},
"hsl": {
"h": 230.732,
"s": 56.682,
"l": 42.549
},
"oklch": {
"l": 0.43117,
"c": 0.16726,
"h": 269.9
},
"luminance": 0.07403
}Semantic roles & 50–950 ramp
primary
#2F42AA
secondary
#C2B672
accent
#C848E0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82