#2A247C#2A247C
#2A247C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.143 H 278.2°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).
Color values
| HEX | #2A247C |
|---|---|
| RGB | rgb(42, 36, 124) |
| HSL | hsl(244, 55%, 31%) |
| HSV | hsv(244, 71%, 49%) |
| CMYK | cmyk(66.1%, 71%, 0%, 51.4%) |
| CIE-LAB | lab(20.86, 31.20, -49.00) |
| CIE-LCH | lch(20.86, 58.09, 302.49°) |
| OKLab | oklab(33.1% 0.0204 -0.1414) |
| OKLCH | oklch(33.1% 0.143 278.2) |
| XYZ | xyz(5.2226, 3.2088, 19.4090) |
| Luminance | 0.0321 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.41
Royal
#0C1793
ΔE00 5.18
Indigo (survey)
#380282
ΔE00 6.86
Dark Royal Blue
#02066F
ΔE00 7.10
Deep Blue
#040273
ΔE00 7.52
Darkblue
#00008B
ΔE00 7.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A247C #767C24
analogous
#244A7C #2A247C #56247C
triadic
#2A247C #7C2A24 #247C2A
tetradic
#2A247C #7C244A #767C24 #247C56
square
#2A247C #7C244A #767C24 #247C56
split-complementary
#2A247C #7C5624 #4A7C24
monochromatic
#0A081D #1A164D #2A247C #3A32AB #574FCC
Accessibility & contrast
On white
12.79
#2A247C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#2A247C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A247C
12.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A247C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A247C | 1.00 | 12.79 | 1.64 | 12.79 |
| #FFFFFF | 12.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2a247c; /* rgb */ color: rgb(42, 36, 124); /* oklch */ color: oklch(33.1% 0.143 278.2);
Tailwind
colors: {
custom: {
50: '#6f5fa3',
500: '#2a247c',
950: '#000000',
},
}SCSS
$custom: #2a247c; $custom-light: #6f5fa3; $custom-dark: #000000;
JSON
{
"hex": "#2a247c",
"rgb": {
"r": 42,
"g": 36,
"b": 124
},
"hsl": {
"h": 244.091,
"s": 55,
"l": 31.373
},
"oklch": {
"l": 0.33097,
"c": 0.14282,
"h": 278.2
},
"luminance": 0.03209
}Semantic roles & 50–950 ramp
primary
#2A247C
secondary
#A8AE4D
accent
#DE49D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F