#2A2F7A#2A2F7A
#2A2F7A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.126 H 274.9°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2F7A |
|---|---|
| RGB | rgb(42, 47, 122) |
| HSL | hsl(236, 49%, 32%) |
| HSV | hsv(236, 66%, 48%) |
| CMYK | cmyk(65.6%, 61.5%, 0%, 52.2%) |
| CIE-LAB | lab(23.44, 23.20, -43.53) |
| CIE-LCH | lch(23.44, 49.32, 298.06°) |
| OKLab | oklab(34.92% 0.0108 -0.1252) |
| OKLCH | oklch(34.92% 0.126 274.9) |
| XYZ | xyz(5.4831, 3.9300, 18.8782) |
| Luminance | 0.0393 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 6.02
Midnight Blue
#191970
ΔE00 6.20
Blueberry
#464196
ΔE00 6.93
Marine
#042E60
ΔE00 7.17
Sapphire (survey)
#2138AB
ΔE00 7.60
Royal
#0C1793
ΔE00 8.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2F7A #7A752A
analogous
#2A577A #2A2F7A #4D2A7A
triadic
#2A2F7A #7A2A2F #2F7A2A
tetradic
#2A2F7A #7A2A57 #7A752A #2A7A4D
square
#2A2F7A #7A2A57 #7A752A #2A7A4D
split-complementary
#2A2F7A #7A4D2A #577A2A
monochromatic
#0B0C1F #1A1D4C #2A2F7A #3A41A8 #595FC6
Accessibility & contrast
On white
11.76
#2A2F7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#2A2F7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2F7A
11.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2F7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2F7A | 1.00 | 11.76 | 1.79 | 11.76 |
| #FFFFFF | 11.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B7C
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #2a2f7a; /* rgb */ color: rgb(42, 47, 122); /* oklch */ color: oklch(34.9% 0.126 274.9);
Tailwind
colors: {
custom: {
50: '#6d67a1',
500: '#2a2f7a',
950: '#000000',
},
}SCSS
$custom: #2a2f7a; $custom-light: #6d67a1; $custom-dark: #000000;
JSON
{
"hex": "#2a2f7a",
"rgb": {
"r": 42,
"g": 47,
"b": 122
},
"hsl": {
"h": 236.25,
"s": 48.78,
"l": 32.157
},
"oklch": {
"l": 0.34924,
"c": 0.12569,
"h": 274.9
},
"luminance": 0.0393
}Semantic roles & 50–950 ramp
primary
#2A2F7A
secondary
#ABA655
accent
#D04FD8
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#08060F
muted
#7A7A7F