#2A236F#2A236F
#2A236F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.126 H 280.5°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).
Color values
| HEX | #2A236F |
|---|---|
| RGB | rgb(42, 35, 111) |
| HSL | hsl(246, 52%, 29%) |
| HSV | hsv(246, 68%, 44%) |
| CMYK | cmyk(62.2%, 68.5%, 0%, 56.5%) |
| CIE-LAB | lab(19.40, 27.28, -43.06) |
| CIE-LCH | lch(19.40, 50.98, 302.36°) |
| OKLab | oklab(31.66% 0.0231 -0.1239) |
| OKLCH | oklch(31.66% 0.126 280.5) |
| XYZ | xyz(4.4242, 2.8417, 15.3512) |
| Luminance | 0.0284 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.26
Royal
#0C1793
ΔE00 7.05
Dark Indigo
#1F0954
ΔE00 7.09
Darkblue (survey)
#030764
ΔE00 7.17
Dark Royal Blue
#02066F
ΔE00 7.24
Indigo (survey)
#380282
ΔE00 7.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A236F #686F23
analogous
#23426F #2A236F #50236F
triadic
#2A236F #6F2A23 #236F2A
tetradic
#2A236F #6F2342 #686F23 #236F50
square
#2A236F #6F2342 #686F23 #236F50
split-complementary
#2A236F #6F5023 #426F23
monochromatic
#090717 #181440 #2A236F #3C329E #5347C5
Accessibility & contrast
On white
13.39
#2A236F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#2A236F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A236F
13.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A236F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A236F | 1.00 | 13.39 | 1.57 | 13.39 |
| #FFFFFF | 13.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#002C6E
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2a236f; /* rgb */ color: rgb(42, 35, 111); /* oklch */ color: oklch(31.7% 0.126 280.5);
Tailwind
colors: {
custom: {
50: '#6c5e99',
500: '#2a236f',
950: '#000000',
},
}SCSS
$custom: #2a236f; $custom-light: #6c5e99; $custom-dark: #000000;
JSON
{
"hex": "#2a236f",
"rgb": {
"r": 42,
"g": 35,
"b": 111
},
"hsl": {
"h": 245.526,
"s": 52.055,
"l": 28.627
},
"oklch": {
"l": 0.31663,
"c": 0.12607,
"h": 280.5
},
"luminance": 0.02842
}Semantic roles & 50–950 ramp
primary
#2A236F
secondary
#9AA24C
accent
#DB4CCE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E