#3340AA#3340AA
#3340AA is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.0% C 0.169 H 271.8°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).
Color values
| HEX | #3340AA |
|---|---|
| RGB | rgb(51, 64, 170) |
| HSL | hsl(233, 54%, 43%) |
| HSV | hsv(233, 70%, 67%) |
| CMYK | cmyk(70%, 62.4%, 0%, 33.3%) |
| CIE-LAB | lab(32.42, 30.85, -58.40) |
| CIE-LCH | lch(32.42, 66.05, 297.84°) |
| OKLab | oklab(42.96% 0.0054 -0.1685) |
| OKLCH | oklch(42.96% 0.169 271.8) |
| XYZ | xyz(10.4519, 7.2719, 38.8752) |
| Luminance | 0.0727 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.58
Blue Blue
#2242C7
ΔE00 3.92
Blueberry
#464196
ΔE00 4.32
Ocean Blue
#4F42B5
ΔE00 4.43
Cobalt
#0047AB
ΔE00 5.15
Darkslateblue
#483D8B
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3340AA #AA9D33
analogous
#337BAA #3340AA #6133AA
triadic
#3340AA #AA3340 #40AA33
tetradic
#3340AA #AA337B #AA9D33 #33AA61
square
#3340AA #AA337B #AA9D33 #33AA61
split-complementary
#3340AA #AA6133 #7BAA33
monochromatic
#171D4C #252E7B #3340AA #505DCA #7F89D9
Accessibility & contrast
On white
8.56
#3340AA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.45
#3340AA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3340AA
8.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3340AA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3340AA | 1.00 | 8.56 | 2.45 | 8.56 |
| #FFFFFF | 8.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052AD
Deuteranopia (green-blind)
#0047A8
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #3340aa; /* rgb */ color: rgb(51, 64, 170); /* oklch */ color: oklch(43.0% 0.169 271.8);
Tailwind
colors: {
custom: {
50: '#7b74c4',
500: '#3340aa',
950: '#000000',
},
}SCSS
$custom: #3340aa; $custom-light: #7b74c4; $custom-dark: #000000;
JSON
{
"hex": "#3340aa",
"rgb": {
"r": 51,
"g": 64,
"b": 170
},
"hsl": {
"h": 233.445,
"s": 53.846,
"l": 43.333
},
"oklch": {
"l": 0.42964,
"c": 0.16862,
"h": 271.8
},
"luminance": 0.07273
}Semantic roles & 50–950 ramp
primary
#3340AA
secondary
#C2B977
accent
#CD4BDD
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82