#2A307F#2A307F
#2A307F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.132 H 274.2°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).
Color values
| HEX | #2A307F |
|---|---|
| RGB | rgb(42, 48, 127) |
| HSL | hsl(236, 50%, 33%) |
| HSV | hsv(236, 67%, 50%) |
| CMYK | cmyk(66.9%, 62.2%, 0%, 50.2%) |
| CIE-LAB | lab(24.12, 24.37, -45.57) |
| CIE-LCH | lch(24.12, 51.68, 298.14°) |
| OKLab | oklab(35.56% 0.0097 -0.1312) |
| OKLCH | oklch(35.56% 0.132 274.2) |
| XYZ | xyz(5.8413, 4.1379, 20.5654) |
| Luminance | 0.0414 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.72
Blueberry
#464196
ΔE00 6.41
Midnight Blue
#191970
ΔE00 6.48
Sapphire (survey)
#2138AB
ΔE00 6.75
Marine
#042E60
ΔE00 7.51
Royal
#0C1793
ΔE00 7.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A307F #7F792A
analogous
#2A5A7F #2A307F #4E2A7F
triadic
#2A307F #7F2A30 #307F2A
tetradic
#2A307F #7F2A5A #7F792A #2A7F4E
square
#2A307F #7F2A5A #7F792A #2A7F4E
split-complementary
#2A307F #7F4E2A #5A7F2A
monochromatic
#0C0D23 #1B1F51 #2A307F #3941AD #5B62C9
Accessibility & contrast
On white
11.49
#2A307F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#2A307F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A307F
11.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A307F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A307F | 1.00 | 11.49 | 1.83 | 11.49 |
| #FFFFFF | 11.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #2a307f; /* rgb */ color: rgb(42, 48, 127); /* oklch */ color: oklch(35.6% 0.132 274.2);
Tailwind
colors: {
custom: {
50: '#6e68a5',
500: '#2a307f',
950: '#000000',
},
}SCSS
$custom: #2a307f; $custom-light: #6e68a5; $custom-dark: #000000;
JSON
{
"hex": "#2a307f",
"rgb": {
"r": 42,
"g": 48,
"b": 127
},
"hsl": {
"h": 235.765,
"s": 50.296,
"l": 33.137
},
"oklch": {
"l": 0.35561,
"c": 0.1316,
"h": 274.2
},
"luminance": 0.04138
}Semantic roles & 50–950 ramp
primary
#2A307F
secondary
#AEA857
accent
#D04EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F