#30236F#30236F
#30236F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.2% C 0.125 H 284.7°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).
Color values
| HEX | #30236F |
|---|---|
| RGB | rgb(48, 35, 111) |
| HSL | hsl(250, 52%, 29%) |
| HSV | hsv(250, 68%, 44%) |
| CMYK | cmyk(56.8%, 68.5%, 0%, 56.5%) |
| CIE-LAB | lab(19.96, 28.39, -42.13) |
| CIE-LCH | lch(19.96, 50.80, 303.98°) |
| OKLab | oklab(32.2% 0.0319 -0.121) |
| OKLCH | oklch(32.2% 0.125 284.7) |
| XYZ | xyz(4.6883, 2.9779, 15.3636) |
| Luminance | 0.0298 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.89
Dark Indigo
#1F0954
ΔE00 6.99
Indigo (survey)
#380282
ΔE00 7.30
Royal
#0C1793
ΔE00 7.40
Darkblue (survey)
#030764
ΔE00 7.51
Dark Royal Blue
#02066F
ΔE00 7.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30236F #626F23
analogous
#233C6F #30236F #56236F
triadic
#30236F #6F3023 #236F30
tetradic
#30236F #6F233C #626F23 #236F56
square
#30236F #6F233C #626F23 #236F56
split-complementary
#30236F #6F5623 #3C6F23
monochromatic
#0A0717 #1C1440 #30236F #44329E #5D47C5
Accessibility & contrast
On white
13.16
#30236F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#30236F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30236F
13.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30236F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30236F | 1.00 | 13.16 | 1.60 | 13.16 |
| #FFFFFF | 13.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#002E6D
Tritanopia (blue-blind)
#153645
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #30236f; /* rgb */ color: rgb(48, 35, 111); /* oklch */ color: oklch(32.2% 0.125 284.7);
Tailwind
colors: {
custom: {
50: '#6f5f99',
500: '#30236f',
950: '#000000',
},
}SCSS
$custom: #30236f; $custom-light: #6f5f99; $custom-dark: #000000;
JSON
{
"hex": "#30236f",
"rgb": {
"r": 48,
"g": 35,
"b": 111
},
"hsl": {
"h": 250.263,
"s": 52.055,
"l": 28.627
},
"oklch": {
"l": 0.32204,
"c": 0.12512,
"h": 284.7
},
"luminance": 0.02978
}Semantic roles & 50–950 ramp
primary
#30236F
secondary
#93A24C
accent
#DB4CC3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E