#3A408A#3A408A
#3A408A is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.8% C 0.121 H 276.1°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).
Color values
| HEX | #3A408A |
|---|---|
| RGB | rgb(58, 64, 138) |
| HSL | hsl(236, 41%, 38%) |
| HSV | hsv(236, 58%, 54%) |
| CMYK | cmyk(58%, 53.6%, 0%, 45.9%) |
| CIE-LAB | lab(30.40, 20.61, -42.21) |
| CIE-LCH | lch(30.40, 46.97, 296.02°) |
| OKLab | oklab(40.81% 0.0129 -0.1207) |
| OKLCH | oklch(40.81% 0.121 276.1) |
| XYZ | xyz(8.1643, 6.4007, 24.8451) |
| Luminance | 0.0640 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 2.95
Darkslateblue
#483D8B
ΔE00 3.45
Twilight
#4E518B
ΔE00 6.14
Cobalt (survey)
#1E488F
ΔE00 6.26
Sapphire (survey)
#2138AB
ΔE00 6.29
Cobalt
#0047AB
ΔE00 7.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A408A #8A843A
analogous
#3A688A #3A408A #5C3A8A
triadic
#3A408A #8A3A40 #408A3A
tetradic
#3A408A #8A3A68 #8A843A #3A8A5C
square
#3A408A #8A3A68 #8A843A #3A8A5C
split-complementary
#3A408A #8A5C3A #688A3A
monochromatic
#161834 #282C5F #3A408A #4D55B4 #787EC6
Accessibility & contrast
On white
9.21
#3A408A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.28
#3A408A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A408A
9.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A408A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A408A | 1.00 | 9.21 | 2.28 | 9.21 |
| #FFFFFF | 9.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#174B8D
Deuteranopia (green-blind)
#064488
Tritanopia (blue-blind)
#0C515E
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #3a408a; /* rgb */ color: rgb(58, 64, 138); /* oklch */ color: oklch(40.8% 0.121 276.1);
Tailwind
colors: {
custom: {
50: '#7774ad',
500: '#3a408a',
950: '#000000',
},
}SCSS
$custom: #3a408a; $custom-light: #7774ad; $custom-dark: #000000;
JSON
{
"hex": "#3a408a",
"rgb": {
"r": 58,
"g": 64,
"b": 138
},
"hsl": {
"h": 235.5,
"s": 40.816,
"l": 38.431
},
"oklch": {
"l": 0.40805,
"c": 0.12143,
"h": 276.1
},
"luminance": 0.06401
}Semantic roles & 50–950 ramp
primary
#3A408A
secondary
#B0AB70
accent
#C857D1
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#090810
muted
#7B7B7F