#3A3F8A#3A3F8A
#3A3F8A is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.6% C 0.123 H 276.6°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).
Color values
| HEX | #3A3F8A |
|---|---|
| RGB | rgb(58, 63, 138) |
| HSL | hsl(236, 41%, 38%) |
| HSV | hsv(236, 58%, 54%) |
| CMYK | cmyk(58%, 54.3%, 0%, 45.9%) |
| CIE-LAB | lab(30.13, 21.27, -42.65) |
| CIE-LCH | lch(30.13, 47.66, 296.51°) |
| OKLab | oklab(40.6% 0.0141 -0.122) |
| OKLCH | oklch(40.6% 0.123 276.6) |
| XYZ | xyz(8.1084, 6.2890, 24.8264) |
| Luminance | 0.0629 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 2.85
Darkslateblue
#483D8B
ΔE00 3.24
Sapphire (survey)
#2138AB
ΔE00 6.17
Twilight
#4E518B
ΔE00 6.40
Cobalt (survey)
#1E488F
ΔE00 6.52
Ocean Blue
#4F42B5
ΔE00 7.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A3F8A #8A853A
analogous
#3A678A #3A3F8A #5D3A8A
triadic
#3A3F8A #8A3A3F #3F8A3A
tetradic
#3A3F8A #8A3A67 #8A853A #3A8A5D
square
#3A3F8A #8A3A67 #8A853A #3A8A5D
split-complementary
#3A3F8A #8A5D3A #678A3A
monochromatic
#161834 #282B5F #3A3F8A #4D53B4 #787DC6
Accessibility & contrast
On white
9.30
#3A3F8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.26
#3A3F8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A3F8A
9.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A3F8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A3F8A | 1.00 | 9.30 | 2.26 | 9.30 |
| #FFFFFF | 9.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#134A8D
Deuteranopia (green-blind)
#014488
Tritanopia (blue-blind)
#0D505E
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #3a3f8a; /* rgb */ color: rgb(58, 63, 138); /* oklch */ color: oklch(40.6% 0.123 276.6);
Tailwind
colors: {
custom: {
50: '#7874ad',
500: '#3a3f8a',
950: '#000000',
},
}SCSS
$custom: #3a3f8a; $custom-light: #7874ad; $custom-dark: #000000;
JSON
{
"hex": "#3a3f8a",
"rgb": {
"r": 58,
"g": 63,
"b": 138
},
"hsl": {
"h": 236.25,
"s": 40.816,
"l": 38.431
},
"oklch": {
"l": 0.40601,
"c": 0.12285,
"h": 276.6
},
"luminance": 0.0629
}Semantic roles & 50–950 ramp
primary
#3A3F8A
secondary
#B0AC70
accent
#C957D1
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#090810
muted
#7B7B7F