#30338E#30338E
#30338E is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.9% C 0.147 H 275.4°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).
Color values
| HEX | #30338E |
|---|---|
| RGB | rgb(48, 51, 142) |
| HSL | hsl(238, 49%, 37%) |
| HSV | hsv(238, 66%, 56%) |
| CMYK | cmyk(66.2%, 64.1%, 0%, 44.3%) |
| CIE-LAB | lab(26.59, 28.81, -50.90) |
| CIE-LCH | lch(26.59, 58.49, 299.51°) |
| OKLab | oklab(37.88% 0.0138 -0.1467) |
| OKLCH | oklch(37.88% 0.147 275.4) |
| XYZ | xyz(7.2836, 4.9484, 26.1572) |
| Luminance | 0.0495 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.56
Darkslateblue
#483D8B
ΔE00 4.75
Blueberry
#464196
ΔE00 4.78
Royal
#0C1793
ΔE00 7.35
Midnight Blue
#191970
ΔE00 7.84
Ocean Blue
#4F42B5
ΔE00 7.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30338E #8E8B30
analogous
#30628E #30338E #5C308E
triadic
#30338E #8E3033 #338E30
tetradic
#30338E #8E3062 #8E8B30 #308E5C
square
#30338E #8E3062 #8E8B30 #308E5C
split-complementary
#30338E #8E5C30 #628E30
monochromatic
#111233 #212360 #30338E #3F43BC #6B6ECD
Accessibility & contrast
On white
10.55
#30338E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.99
#30338E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30338E
10.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30338E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30338E | 1.00 | 10.55 | 1.99 | 10.55 |
| #FFFFFF | 10.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #30338e; /* rgb */ color: rgb(48, 51, 142); /* oklch */ color: oklch(37.9% 0.147 275.4);
Tailwind
colors: {
custom: {
50: '#746bb0',
500: '#30338e',
950: '#000000',
},
}SCSS
$custom: #30338e; $custom-light: #746bb0; $custom-dark: #000000;
JSON
{
"hex": "#30338e",
"rgb": {
"r": 48,
"g": 51,
"b": 142
},
"hsl": {
"h": 238.085,
"s": 49.474,
"l": 37.255
},
"oklch": {
"l": 0.37884,
"c": 0.14735,
"h": 275.4
},
"luminance": 0.04949
}Semantic roles & 50–950 ramp
primary
#30338E
secondary
#B4B265
accent
#D54FD9
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80