#2A308C#2A308C
#2A308C is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.7% C 0.150 H 273.5°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).
Color values
| HEX | #2A308C |
|---|---|
| RGB | rgb(42, 48, 140) |
| HSL | hsl(236, 54%, 36%) |
| HSV | hsv(236, 70%, 55%) |
| CMYK | cmyk(70%, 65.7%, 0%, 45.1%) |
| CIE-LAB | lab(25.26, 29.16, -51.85) |
| CIE-LCH | lch(25.26, 59.49, 299.35°) |
| OKLab | oklab(36.75% 0.0091 -0.1497) |
| OKLCH | oklch(36.75% 0.15 273.5) |
| XYZ | xyz(6.7438, 4.4990, 25.3188) |
| Luminance | 0.0450 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.88
Darkslateblue
#483D8B
ΔE00 5.68
Blueberry
#464196
ΔE00 5.82
Royal
#0C1793
ΔE00 6.55
Midnight Blue
#191970
ΔE00 6.98
Indigo Blue
#3A18B1
ΔE00 8.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A308C #8C862A
analogous
#2A618C #2A308C #552A8C
triadic
#2A308C #8C2A30 #308C2A
tetradic
#2A308C #8C2A61 #8C862A #2A8C55
square
#2A308C #8C2A61 #8C862A #2A8C55
split-complementary
#2A308C #8C552A #618C2A
monochromatic
#0E102E #1C205D #2A308C #3840BB #6168D0
Accessibility & contrast
On white
11.05
#2A308C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#2A308C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A308C
11.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A308C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A308C | 1.00 | 11.05 | 1.90 | 11.05 |
| #FFFFFF | 11.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#00378A
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #2a308c; /* rgb */ color: rgb(42, 48, 140); /* oklch */ color: oklch(36.7% 0.150 273.5);
Tailwind
colors: {
custom: {
50: '#7168ae',
500: '#2a308c',
950: '#000000',
},
}SCSS
$custom: #2a308c; $custom-light: #7168ae; $custom-dark: #000000;
JSON
{
"hex": "#2a308c",
"rgb": {
"r": 42,
"g": 48,
"b": 140
},
"hsl": {
"h": 236.327,
"s": 53.846,
"l": 35.686
},
"oklch": {
"l": 0.36748,
"c": 0.14995,
"h": 273.5
},
"luminance": 0.045
}Semantic roles & 50–950 ramp
primary
#2A308C
secondary
#B5B05C
accent
#D44BDD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F