#2A3F97#2A3F97
#2A3F97 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.6% C 0.146 H 268.8°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).
Color values
| HEX | #2A3F97 |
|---|---|
| RGB | rgb(42, 63, 151) |
| HSL | hsl(228, 56%, 38%) |
| HSV | hsv(228, 72%, 59%) |
| CMYK | cmyk(72.2%, 58.3%, 0%, 40.8%) |
| CIE-LAB | lab(30.11, 23.22, -50.71) |
| CIE-LCH | lch(30.11, 55.77, 294.61°) |
| OKLab | oklab(40.63% -0.0031 -0.1461) |
| OKLCH | oklch(40.63% 0.146 268.8) |
| XYZ | xyz(8.3163, 6.2808, 30.0462) |
| Luminance | 0.0628 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.89
Blueberry
#464196
ΔE00 4.54
Cobalt
#0047AB
ΔE00 4.64
Cobalt (survey)
#1E488F
ΔE00 4.73
Darkslateblue
#483D8B
ΔE00 5.98
Darkish Blue
#014182
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A3F97 #97822A
analogous
#2A7697 #2A3F97 #4B2A97
triadic
#2A3F97 #972A3F #3F972A
tetradic
#2A3F97 #972A76 #97822A #2A974B
square
#2A3F97 #972A76 #97822A #2A974B
split-complementary
#2A3F97 #974B2A #76972A
monochromatic
#0F1737 #1D2B67 #2A3F97 #3753C7 #677CD5
Accessibility & contrast
On white
9.31
#2A3F97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.26
#2A3F97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A3F97
9.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A3F97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A3F97 | 1.00 | 9.31 | 2.26 | 9.31 |
| #FFFFFF | 9.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#005564
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #2a3f97; /* rgb */ color: rgb(42, 63, 151); /* oklch */ color: oklch(40.6% 0.146 268.8);
Tailwind
colors: {
custom: {
50: '#7373b6',
500: '#2a3f97',
950: '#000000',
},
}SCSS
$custom: #2a3f97; $custom-light: #7373b6; $custom-dark: #000000;
JSON
{
"hex": "#2a3f97",
"rgb": {
"r": 42,
"g": 63,
"b": 151
},
"hsl": {
"h": 228.44,
"s": 56.477,
"l": 37.843
},
"oklch": {
"l": 0.40631,
"c": 0.14618,
"h": 268.8
},
"luminance": 0.06282
}Semantic roles & 50–950 ramp
primary
#2A3F97
secondary
#BBAA62
accent
#C348E0
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80