#2A2F9D#2A2F9D
#2A2F9D is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.2% C 0.174 H 272.7°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2F9D |
|---|---|
| RGB | rgb(42, 47, 157) |
| HSL | hsl(237, 58%, 39%) |
| HSV | hsv(237, 73%, 62%) |
| CMYK | cmyk(73.2%, 70.1%, 0%, 38.4%) |
| CIE-LAB | lab(26.62, 35.93, -60.08) |
| CIE-LCH | lch(26.62, 70.00, 300.88°) |
| OKLab | oklab(38.23% 0.0081 -0.1737) |
| OKLCH | oklch(38.23% 0.174 272.7) |
| XYZ | xyz(8.0551, 4.9588, 32.4244) |
| Luminance | 0.0496 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.27
Royal
#0C1793
ΔE00 5.93
Indigo Blue
#3A18B1
ΔE00 6.03
Blueberry
#464196
ΔE00 6.15
Darkslateblue
#483D8B
ΔE00 6.63
Cobalt Blue
#030AA7
ΔE00 7.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2F9D #9D982A
analogous
#2A699D #2A2F9D #5F2A9D
triadic
#2A2F9D #9D2A2F #2F9D2A
tetradic
#2A2F9D #9D2A69 #9D982A #2A9D5F
square
#2A2F9D #9D2A69 #9D982A #2A9D5F
split-complementary
#2A2F9D #9D5F2A #699D2A
monochromatic
#10123C #1D216D #2A2F9D #3A40CA #6A6FD7
Accessibility & contrast
On white
10.54
#2A2F9D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.99
#2A2F9D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2F9D
10.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2F9D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2F9D | 1.00 | 10.54 | 1.99 | 10.54 |
| #FFFFFF | 10.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#00399B
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #2a2f9d; /* rgb */ color: rgb(42, 47, 157); /* oklch */ color: oklch(38.2% 0.174 272.7);
Tailwind
colors: {
custom: {
50: '#7568bb',
500: '#2a2f9d',
950: '#000000',
},
}SCSS
$custom: #2a2f9d; $custom-light: #7568bb; $custom-dark: #000000;
JSON
{
"hex": "#2a2f9d",
"rgb": {
"r": 42,
"g": 47,
"b": 157
},
"hsl": {
"h": 237.391,
"s": 57.789,
"l": 39.02
},
"oklch": {
"l": 0.38226,
"c": 0.17393,
"h": 272.7
},
"luminance": 0.0496
}Semantic roles & 50–950 ramp
primary
#2A2F9D
secondary
#BEBA65
accent
#DA47E1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81