#2A308B#2A308B
#2A308B is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.7% C 0.149 H 273.5°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).
Color values
| HEX | #2A308B |
|---|---|
| RGB | rgb(42, 48, 139) |
| HSL | hsl(236, 54%, 35%) |
| HSV | hsv(236, 70%, 55%) |
| CMYK | cmyk(69.8%, 65.5%, 0%, 45.5%) |
| CIE-LAB | lab(25.17, 28.80, -51.38) |
| CIE-LCH | lch(25.17, 58.90, 299.27°) |
| OKLab | oklab(36.66% 0.0092 -0.1483) |
| OKLCH | oklch(36.66% 0.149 273.5) |
| XYZ | xyz(6.6704, 4.4696, 24.9323) |
| Luminance | 0.0447 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.01
Darkslateblue
#483D8B
ΔE00 5.66
Blueberry
#464196
ΔE00 5.84
Royal
#0C1793
ΔE00 6.62
Midnight Blue
#191970
ΔE00 6.92
Indigo Blue
#3A18B1
ΔE00 8.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A308B #8B852A
analogous
#2A608B #2A308B #552A8B
triadic
#2A308B #8B2A30 #308B2A
tetradic
#2A308B #8B2A60 #8B852A #2A8B55
square
#2A308B #8B2A60 #8B852A #2A8B55
split-complementary
#2A308B #8B552A #608B2A
monochromatic
#0E102D #1C205C #2A308B #3840BA #6067CF
Accessibility & contrast
On white
11.09
#2A308B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.89
#2A308B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A308B
11.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A308B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A308B | 1.00 | 11.09 | 1.89 | 11.09 |
| #FFFFFF | 11.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #2a308b; /* rgb */ color: rgb(42, 48, 139); /* oklch */ color: oklch(36.7% 0.149 273.5);
Tailwind
colors: {
custom: {
50: '#7168ae',
500: '#2a308b',
950: '#000000',
},
}SCSS
$custom: #2a308b; $custom-light: #7168ae; $custom-dark: #000000;
JSON
{
"hex": "#2a308b",
"rgb": {
"r": 42,
"g": 48,
"b": 139
},
"hsl": {
"h": 236.289,
"s": 53.591,
"l": 35.49
},
"oklch": {
"l": 0.36655,
"c": 0.14856,
"h": 273.5
},
"luminance": 0.0447
}Semantic roles & 50–950 ramp
primary
#2A308B
secondary
#B5AF5C
accent
#D44BDD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F