#301B6E#301B6E
#301B6E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.134 H 287.3°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).
Color values
| HEX | #301B6E |
|---|---|
| RGB | rgb(48, 27, 110) |
| HSL | hsl(255, 61%, 27%) |
| HSV | hsv(255, 75%, 43%) |
| CMYK | cmyk(56.4%, 75.5%, 0%, 56.9%) |
| CIE-LAB | lab(18.09, 32.93, -44.53) |
| CIE-LCH | lch(18.09, 55.39, 306.48°) |
| OKLab | oklab(30.84% 0.0399 -0.128) |
| OKLCH | oklch(30.84% 0.134 287.3) |
| XYZ | xyz(4.4245, 2.5378, 15.0055) |
| Luminance | 0.0254 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.37
Indigo (survey)
#380282
ΔE00 5.47
Dark Indigo
#1F0954
ΔE00 5.51
Dark Royal Blue
#02066F
ΔE00 6.01
Darkblue (survey)
#030764
ΔE00 6.05
Deep Blue
#040273
ΔE00 6.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301B6E #596E1B
analogous
#1B306E #301B6E #5A1B6E
triadic
#301B6E #6E301B #1B6E30
tetradic
#301B6E #6E1B30 #596E1B #1B6E5A
square
#301B6E #6E1B30 #596E1B #1B6E5A
split-complementary
#301B6E #6E5A1B #306E1B
monochromatic
#0B0619 #1B0F3D #301B6E #45279F #5C36CE
Accessibility & contrast
On white
13.93
#301B6E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#301B6E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301B6E
13.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301B6E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301B6E | 1.00 | 13.93 | 1.51 | 13.93 |
| #FFFFFF | 13.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E70
Deuteranopia (green-blind)
#002A6C
Tritanopia (blue-blind)
#173142
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #301b6e; /* rgb */ color: rgb(48, 27, 110); /* oklch */ color: oklch(30.8% 0.134 287.3);
Tailwind
colors: {
custom: {
50: '#705998',
500: '#301b6e',
950: '#000000',
},
}SCSS
$custom: #301b6e; $custom-light: #705998; $custom-dark: #000000;
JSON
{
"hex": "#301b6e",
"rgb": {
"r": 48,
"g": 27,
"b": 110
},
"hsl": {
"h": 255.181,
"s": 60.584,
"l": 26.863
},
"oklch": {
"l": 0.30838,
"c": 0.13411,
"h": 287.3
},
"luminance": 0.02538
}Semantic roles & 50–950 ramp
primary
#301B6E
secondary
#8AA342
accent
#E444BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E