#2A3F99#2A3F99
#2A3F99 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.8% C 0.149 H 268.8°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).
Color values
| HEX | #2A3F99 |
|---|---|
| RGB | rgb(42, 63, 153) |
| HSL | hsl(229, 57%, 38%) |
| HSV | hsv(229, 73%, 60%) |
| CMYK | cmyk(72.5%, 58.8%, 0%, 40%) |
| CIE-LAB | lab(30.27, 23.98, -51.67) |
| CIE-LCH | lch(30.27, 56.96, 294.90°) |
| OKLab | oklab(40.8% -0.003 -0.149) |
| OKLCH | oklch(40.8% 0.149 268.8) |
| XYZ | xyz(8.4801, 6.3463, 30.9089) |
| Luminance | 0.0635 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.62
Blueberry
#464196
ΔE00 4.51
Cobalt
#0047AB
ΔE00 4.55
Cobalt (survey)
#1E488F
ΔE00 4.88
Darkslateblue
#483D8B
ΔE00 6.03
Blue Blue
#2242C7
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A3F99 #99842A
analogous
#2A7699 #2A3F99 #4D2A99
triadic
#2A3F99 #992A3F #3F992A
tetradic
#2A3F99 #992A76 #99842A #2A994D
square
#2A3F99 #992A76 #99842A #2A994D
split-complementary
#2A3F99 #994D2A #76992A
monochromatic
#101739 #1D2B69 #2A3F99 #3853C8 #687DD6
Accessibility & contrast
On white
9.25
#2A3F99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.27
#2A3F99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A3F99
9.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A3F99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A3F99 | 1.00 | 9.25 | 2.27 | 9.25 |
| #FFFFFF | 9.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004D9C
Deuteranopia (green-blind)
#004297
Tritanopia (blue-blind)
#005565
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #2a3f99; /* rgb */ color: rgb(42, 63, 153); /* oklch */ color: oklch(40.8% 0.149 268.8);
Tailwind
colors: {
custom: {
50: '#7373b8',
500: '#2a3f99',
950: '#000000',
},
}SCSS
$custom: #2a3f99; $custom-light: #7373b8; $custom-dark: #000000;
JSON
{
"hex": "#2a3f99",
"rgb": {
"r": 42,
"g": 63,
"b": 153
},
"hsl": {
"h": 228.649,
"s": 56.923,
"l": 38.235
},
"oklch": {
"l": 0.40801,
"c": 0.149,
"h": 268.8
},
"luminance": 0.06347
}Semantic roles & 50–950 ramp
primary
#2A3F99
secondary
#BCAB63
accent
#C348E0
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80