#30236E#30236E
#30236E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.1% C 0.124 H 285.0°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).
Color values
| HEX | #30236E |
|---|---|
| RGB | rgb(48, 35, 110) |
| HSL | hsl(250, 52%, 28%) |
| HSV | hsv(250, 68%, 43%) |
| CMYK | cmyk(56.4%, 68.2%, 0%, 56.9%) |
| CIE-LAB | lab(19.87, 28.06, -41.63) |
| CIE-LCH | lch(19.87, 50.20, 303.98°) |
| OKLab | oklab(32.11% 0.032 -0.1195) |
| OKLCH | oklch(32.11% 0.124 285) |
| XYZ | xyz(4.6336, 2.9560, 15.0752) |
| Luminance | 0.0296 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.97
Dark Indigo
#1F0954
ΔE00 6.92
Indigo (survey)
#380282
ΔE00 7.42
Darkblue (survey)
#030764
ΔE00 7.54
Royal
#0C1793
ΔE00 7.57
Dark Royal Blue
#02066F
ΔE00 7.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30236E #616E23
analogous
#233B6E #30236E #55236E
triadic
#30236E #6E3023 #236E30
tetradic
#30236E #6E233B #616E23 #236E55
square
#30236E #6E233B #616E23 #236E55
split-complementary
#30236E #6E5523 #3B6E23
monochromatic
#0A0717 #1C1440 #30236E #44329C #5D47C4
Accessibility & contrast
On white
13.20
#30236E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#30236E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30236E
13.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30236E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30236E | 1.00 | 13.20 | 1.59 | 13.20 |
| #FFFFFF | 13.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003270
Deuteranopia (green-blind)
#002E6D
Tritanopia (blue-blind)
#163645
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #30236e; /* rgb */ color: rgb(48, 35, 110); /* oklch */ color: oklch(32.1% 0.124 285.0);
Tailwind
colors: {
custom: {
50: '#6f5f98',
500: '#30236e',
950: '#000000',
},
}SCSS
$custom: #30236e; $custom-light: #6f5f98; $custom-dark: #000000;
JSON
{
"hex": "#30236e",
"rgb": {
"r": 48,
"g": 35,
"b": 110
},
"hsl": {
"h": 250.4,
"s": 51.724,
"l": 28.431
},
"oklch": {
"l": 0.32113,
"c": 0.12372,
"h": 285
},
"luminance": 0.02956
}Semantic roles & 50–950 ramp
primary
#30236E
secondary
#92A14C
accent
#DB4DC2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E