#301B6F#301B6F
#301B6F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 30.9% C 0.135 H 287.0°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).
Color values
| HEX | #301B6F |
|---|---|
| RGB | rgb(48, 27, 111) |
| HSL | hsl(255, 61%, 27%) |
| HSV | hsv(255, 76%, 44%) |
| CMYK | cmyk(56.8%, 75.7%, 0%, 56.5%) |
| CIE-LAB | lab(18.19, 33.25, -45.02) |
| CIE-LCH | lch(18.19, 55.97, 306.44°) |
| OKLab | oklab(30.94% 0.0397 -0.1295) |
| OKLCH | oklch(30.94% 0.135 287) |
| XYZ | xyz(4.4792, 2.5597, 15.2939) |
| Luminance | 0.0256 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.31
Indigo (survey)
#380282
ΔE00 5.34
Dark Indigo
#1F0954
ΔE00 5.62
Dark Royal Blue
#02066F
ΔE00 5.95
Darkblue (survey)
#030764
ΔE00 6.04
Deep Blue
#040273
ΔE00 6.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301B6F #5A6F1B
analogous
#1B306F #301B6F #5A1B6F
triadic
#301B6F #6F301B #1B6F30
tetradic
#301B6F #6F1B30 #5A6F1B #1B6F5A
square
#301B6F #6F1B30 #5A6F1B #1B6F5A
split-complementary
#301B6F #6F5A1B #306F1B
monochromatic
#0B0619 #1B0F3E #301B6F #4527A0 #5C36CE
Accessibility & contrast
On white
13.89
#301B6F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#301B6F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301B6F
13.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301B6F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301B6F | 1.00 | 13.89 | 1.51 | 13.89 |
| #FFFFFF | 13.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#002A6D
Tritanopia (blue-blind)
#163243
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #301b6f; /* rgb */ color: rgb(48, 27, 111); /* oklch */ color: oklch(30.9% 0.135 287.0);
Tailwind
colors: {
custom: {
50: '#705999',
500: '#301b6f',
950: '#000000',
},
}SCSS
$custom: #301b6f; $custom-light: #705999; $custom-dark: #000000;
JSON
{
"hex": "#301b6f",
"rgb": {
"r": 48,
"g": 27,
"b": 111
},
"hsl": {
"h": 255,
"s": 60.87,
"l": 27.059
},
"oklch": {
"l": 0.30937,
"c": 0.13542,
"h": 287
},
"luminance": 0.0256
}Semantic roles & 50–950 ramp
primary
#301B6F
secondary
#8BA442
accent
#E444BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E