#2A3F8A#2A3F8A
#2A3F8A is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.6% C 0.127 H 268.3°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).
Color values
| HEX | #2A3F8A |
|---|---|
| RGB | rgb(42, 63, 138) |
| HSL | hsl(227, 53%, 35%) |
| HSV | hsv(227, 70%, 54%) |
| CMYK | cmyk(69.6%, 54.3%, 0%, 45.9%) |
| CIE-LAB | lab(29.11, 18.27, -44.34) |
| CIE-LCH | lch(29.11, 47.96, 292.39°) |
| OKLab | oklab(39.57% -0.0039 -0.1274) |
| OKLCH | oklch(39.57% 0.127 268.3) |
| XYZ | xyz(7.3182, 5.8815, 24.7894) |
| Luminance | 0.0588 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 4.15
Darkish Blue
#014182
ΔE00 5.08
Blueberry
#464196
ΔE00 5.23
Cobalt
#0047AB
ΔE00 5.66
Sapphire (survey)
#2138AB
ΔE00 5.79
Twilight Blue
#0A437A
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A3F8A #8A752A
analogous
#2A6F8A #2A3F8A #452A8A
triadic
#2A3F8A #8A2A3F #3F8A2A
tetradic
#2A3F8A #8A2A6F #8A752A #2A8A45
square
#2A3F8A #8A2A6F #8A752A #2A8A45
split-complementary
#2A3F8A #8A452A #6F8A2A
monochromatic
#0D142C #1C2A5B #2A3F8A #3854B9 #6078CF
Accessibility & contrast
On white
9.65
#2A3F8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#2A3F8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A3F8A
9.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A3F8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A3F8A | 1.00 | 9.65 | 2.18 | 9.65 |
| #FFFFFF | 9.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0C498D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#00515E
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #2a3f8a; /* rgb */ color: rgb(42, 63, 138); /* oklch */ color: oklch(39.6% 0.127 268.3);
Tailwind
colors: {
custom: {
50: '#7073ad',
500: '#2a3f8a',
950: '#000000',
},
}SCSS
$custom: #2a3f8a; $custom-light: #7073ad; $custom-dark: #000000;
JSON
{
"hex": "#2a3f8a",
"rgb": {
"r": 42,
"g": 63,
"b": 138
},
"hsl": {
"h": 226.875,
"s": 53.333,
"l": 35.294
},
"oklch": {
"l": 0.39565,
"c": 0.12749,
"h": 268.3
},
"luminance": 0.05882
}Semantic roles & 50–950 ramp
primary
#2A3F8A
secondary
#B4A15B
accent
#BD4BDD
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F