#2A2F9E#2A2F9E
#2A2F9E is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.3% C 0.175 H 272.6°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2F9E |
|---|---|
| RGB | rgb(42, 47, 158) |
| HSL | hsl(237, 58%, 39%) |
| HSV | hsv(237, 73%, 62%) |
| CMYK | cmyk(73.4%, 70.3%, 0%, 38%) |
| CIE-LAB | lab(26.72, 36.28, -60.53) |
| CIE-LCH | lch(26.72, 70.57, 300.94°) |
| OKLab | oklab(38.33% 0.008 -0.175) |
| OKLCH | oklch(38.33% 0.175 272.6) |
| XYZ | xyz(8.1408, 4.9931, 32.8758) |
| Luminance | 0.0499 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.20
Indigo Blue
#3A18B1
ΔE00 5.95
Royal
#0C1793
ΔE00 5.95
Blueberry
#464196
ΔE00 6.18
Darkslateblue
#483D8B
ΔE00 6.70
Ocean Blue
#4F42B5
ΔE00 7.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2F9E #9E992A
analogous
#2A699E #2A2F9E #5F2A9E
triadic
#2A2F9E #9E2A2F #2F9E2A
tetradic
#2A2F9E #9E2A69 #9E992A #2A9E5F
square
#2A2F9E #9E2A69 #9E992A #2A9E5F
split-complementary
#2A2F9E #9E5F2A #699E2A
monochromatic
#10123D #1D216E #2A2F9E #3A41CB #6B6FD8
Accessibility & contrast
On white
10.51
#2A2F9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.00
#2A2F9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2F9E
10.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2F9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2F9E | 1.00 | 10.51 | 2.00 | 10.51 |
| #FFFFFF | 10.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#003A9C
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #2a2f9e; /* rgb */ color: rgb(42, 47, 158); /* oklch */ color: oklch(38.3% 0.175 272.6);
Tailwind
colors: {
custom: {
50: '#7668bc',
500: '#2a2f9e',
950: '#000000',
},
}SCSS
$custom: #2a2f9e; $custom-light: #7668bc; $custom-dark: #000000;
JSON
{
"hex": "#2a2f9e",
"rgb": {
"r": 42,
"g": 47,
"b": 158
},
"hsl": {
"h": 237.414,
"s": 58,
"l": 39.216
},
"oklch": {
"l": 0.38326,
"c": 0.17523,
"h": 272.6
},
"luminance": 0.04994
}Semantic roles & 50–950 ramp
primary
#2A2F9E
secondary
#BEBA66
accent
#DB47E1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81