#30339E#30339E
#30339E is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.4% C 0.169 H 274.2°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).
Color values
| HEX | #30339E |
|---|---|
| RGB | rgb(48, 51, 158) |
| HSL | hsl(238, 53%, 40%) |
| HSV | hsv(238, 70%, 62%) |
| CMYK | cmyk(69.6%, 67.7%, 0%, 38%) |
| CIE-LAB | lab(28.02, 34.50, -58.37) |
| CIE-LCH | lch(28.02, 67.81, 300.58°) |
| OKLab | oklab(39.37% 0.0124 -0.1686) |
| OKLCH | oklch(39.37% 0.169 274.2) |
| XYZ | xyz(8.5723, 5.4639, 32.9440) |
| Luminance | 0.0546 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.73
Blueberry
#464196
ΔE00 5.07
Darkslateblue
#483D8B
ΔE00 5.80
Ocean Blue
#4F42B5
ΔE00 6.31
Indigo Blue
#3A18B1
ΔE00 6.62
Blue Blue
#2242C7
ΔE00 6.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30339E #9E9B30
analogous
#306A9E #30339E #64309E
triadic
#30339E #9E3033 #339E30
tetradic
#30339E #9E306A #9E9B30 #309E64
square
#30339E #9E306A #9E9B30 #309E64
split-complementary
#30339E #9E6430 #6A9E30
monochromatic
#131540 #22246F #30339E #4548C6 #7476D5
Accessibility & contrast
On white
10.03
#30339E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.09
#30339E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30339E
10.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30339E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30339E | 1.00 | 10.03 | 2.09 | 10.03 |
| #FFFFFF | 10.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#003D9C
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #30339e; /* rgb */ color: rgb(48, 51, 158); /* oklch */ color: oklch(39.4% 0.169 274.2);
Tailwind
colors: {
custom: {
50: '#786bbc',
500: '#30339e',
950: '#000000',
},
}SCSS
$custom: #30339e; $custom-light: #786bbc; $custom-dark: #000000;
JSON
{
"hex": "#30339e",
"rgb": {
"r": 48,
"g": 51,
"b": 158
},
"hsl": {
"h": 238.364,
"s": 53.398,
"l": 40.392
},
"oklch": {
"l": 0.39369,
"c": 0.16906,
"h": 274.2
},
"luminance": 0.05465
}Semantic roles & 50–950 ramp
primary
#30339E
secondary
#BDBA6D
accent
#D94BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81