#2A2F8F#2A2F8F
#2A2F8F is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.9% C 0.155 H 273.6°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2F8F |
|---|---|
| RGB | rgb(42, 47, 143) |
| HSL | hsl(237, 55%, 36%) |
| HSV | hsv(237, 71%, 56%) |
| CMYK | cmyk(70.6%, 67.1%, 0%, 43.9%) |
| CIE-LAB | lab(25.28, 30.91, -53.67) |
| CIE-LCH | lch(25.28, 61.93, 299.94°) |
| OKLab | oklab(36.85% 0.0096 -0.155) |
| OKLCH | oklch(36.85% 0.155 273.6) |
| XYZ | xyz(6.9276, 4.5078, 26.4863) |
| Luminance | 0.0451 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.63
Darkslateblue
#483D8B
ΔE00 5.91
Blueberry
#464196
ΔE00 5.96
Royal
#0C1793
ΔE00 6.11
Midnight Blue
#191970
ΔE00 6.98
Indigo Blue
#3A18B1
ΔE00 7.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2F8F #8F8A2A
analogous
#2A628F #2A2F8F #582A8F
triadic
#2A2F8F #8F2A2F #2F8F2A
tetradic
#2A2F8F #8F2A62 #8F8A2A #2A8F58
square
#2A2F8F #8F2A62 #8F8A2A #2A8F58
split-complementary
#2A2F8F #8F582A #628F2A
monochromatic
#0E1030 #1C1F60 #2A2F8F #383FBE #6268D1
Accessibility & contrast
On white
11.04
#2A2F8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#2A2F8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2F8F
11.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2F8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2F8F | 1.00 | 11.04 | 1.90 | 11.04 |
| #FFFFFF | 11.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #2a2f8f; /* rgb */ color: rgb(42, 47, 143); /* oklch */ color: oklch(36.9% 0.155 273.6);
Tailwind
colors: {
custom: {
50: '#7268b1',
500: '#2a2f8f',
950: '#000000',
},
}SCSS
$custom: #2a2f8f; $custom-light: #7268b1; $custom-dark: #000000;
JSON
{
"hex": "#2a2f8f",
"rgb": {
"r": 42,
"g": 47,
"b": 143
},
"hsl": {
"h": 237.03,
"s": 54.595,
"l": 36.275
},
"oklch": {
"l": 0.36852,
"c": 0.1553,
"h": 273.6
},
"luminance": 0.04508
}Semantic roles & 50–950 ramp
primary
#2A2F8F
secondary
#B7B35E
accent
#D74ADE
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80