#2A2F9B#2A2F9B
#2A2F9B is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.171 H 272.8°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2F9B |
|---|---|
| RGB | rgb(42, 47, 155) |
| HSL | hsl(237, 57%, 39%) |
| HSV | hsv(237, 73%, 61%) |
| CMYK | cmyk(72.9%, 69.7%, 0%, 39.2%) |
| CIE-LAB | lab(26.42, 35.22, -59.18) |
| CIE-LCH | lch(26.42, 68.87, 300.76°) |
| OKLab | oklab(38.03% 0.0084 -0.1711) |
| OKLCH | oklch(38.03% 0.171 272.8) |
| XYZ | xyz(7.8858, 4.8910, 31.5325) |
| Luminance | 0.0489 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.42
Royal
#0C1793
ΔE00 5.90
Blueberry
#464196
ΔE00 6.09
Indigo Blue
#3A18B1
ΔE00 6.22
Darkslateblue
#483D8B
ΔE00 6.50
Cobalt Blue
#030AA7
ΔE00 7.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2F9B #9B962A
analogous
#2A679B #2A2F9B #5D2A9B
triadic
#2A2F9B #9B2A2F #2F9B2A
tetradic
#2A2F9B #9B2A67 #9B962A #2A9B5D
square
#2A2F9B #9B2A67 #9B962A #2A9B5D
split-complementary
#2A2F9B #9B5D2A #679B2A
monochromatic
#10123B #1D206B #2A2F9B #393FC9 #696ED6
Accessibility & contrast
On white
10.61
#2A2F9B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.98
#2A2F9B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2F9B
10.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2F9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2F9B | 1.00 | 10.61 | 1.98 | 10.61 |
| #FFFFFF | 10.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#003999
Tritanopia (blue-blind)
#004C61
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #2a2f9b; /* rgb */ color: rgb(42, 47, 155); /* oklch */ color: oklch(38.0% 0.171 272.8);
Tailwind
colors: {
custom: {
50: '#7568ba',
500: '#2a2f9b',
950: '#000000',
},
}SCSS
$custom: #2a2f9b; $custom-light: #7568ba; $custom-dark: #000000;
JSON
{
"hex": "#2a2f9b",
"rgb": {
"r": 42,
"g": 47,
"b": 155
},
"hsl": {
"h": 237.345,
"s": 57.36,
"l": 38.627
},
"oklch": {
"l": 0.38026,
"c": 0.17131,
"h": 272.8
},
"luminance": 0.04892
}Semantic roles & 50–950 ramp
primary
#2A2F9B
secondary
#BDB964
accent
#DA47E1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81