#2A307B#2A307B
#2A307B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.2% C 0.126 H 274.5°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).
Color values
| HEX | #2A307B |
|---|---|
| RGB | rgb(42, 48, 123) |
| HSL | hsl(236, 49%, 32%) |
| HSV | hsv(236, 66%, 48%) |
| CMYK | cmyk(65.9%, 61%, 0%, 51.8%) |
| CIE-LAB | lab(23.79, 22.89, -43.59) |
| CIE-LCH | lch(23.79, 49.23, 297.71°) |
| OKLab | oklab(35.21% 0.0098 -0.1254) |
| OKLCH | oklch(35.21% 0.126 274.5) |
| XYZ | xyz(5.5858, 4.0357, 19.2197) |
| Luminance | 0.0404 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.88
Midnight Blue
#191970
ΔE00 6.50
Blueberry
#464196
ΔE00 6.72
Marine
#042E60
ΔE00 7.09
Sapphire (survey)
#2138AB
ΔE00 7.39
Royal
#0C1793
ΔE00 8.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A307B #7B752A
analogous
#2A587B #2A307B #4D2A7B
triadic
#2A307B #7B2A30 #307B2A
tetradic
#2A307B #7B2A58 #7B752A #2A7B4D
square
#2A307B #7B2A58 #7B752A #2A7B4D
split-complementary
#2A307B #7B4D2A #587B2A
monochromatic
#0B0C20 #1A1E4D #2A307B #3A42A9 #5961C6
Accessibility & contrast
On white
11.62
#2A307B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#2A307B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A307B
11.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A307B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A307B | 1.00 | 11.62 | 1.81 | 11.62 |
| #FFFFFF | 11.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C7E
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #2a307b; /* rgb */ color: rgb(42, 48, 123); /* oklch */ color: oklch(35.2% 0.126 274.5);
Tailwind
colors: {
custom: {
50: '#6d68a2',
500: '#2a307b',
950: '#000000',
},
}SCSS
$custom: #2a307b; $custom-light: #6d68a2; $custom-dark: #000000;
JSON
{
"hex": "#2a307b",
"rgb": {
"r": 42,
"g": 48,
"b": 123
},
"hsl": {
"h": 235.556,
"s": 49.091,
"l": 32.353
},
"oklch": {
"l": 0.3521,
"c": 0.12578,
"h": 274.5
},
"luminance": 0.04036
}Semantic roles & 50–950 ramp
primary
#2A307B
secondary
#ACA555
accent
#CE4FD9
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#08060F
muted
#7A7A7F