#301167#301167

#301167 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.137 H 291.7°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#301167
RGBrgb(48, 17, 103)
HSLhsl(262, 72%, 24%)
HSVhsv(262, 83%, 40%)
CMYKcmyk(53.4%, 83.5%, 0%, 59.6%)
CIE-LABlab(15.53, 36.06, -44.15)
CIE-LCHlch(15.53, 57.00, 309.24°)
OKLaboklab(28.83% 0.0506 -0.1268)
OKLCHoklch(28.83% 0.137 291.7)
XYZxyz(3.8669, 2.0084, 13.0132)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301167 #486711
analogous
#111D67 #301167 #5B1167
triadic
#301167 #673011 #116730
tetradic
#301167 #67111D #486711 #11675B
square
#301167 #67111D #486711 #11675B
split-complementary
#301167 #675B11 #1D6711
monochromatic
#0C041A #180832 #301167 #481A9C #6122D0

Accessibility & contrast

On white

14.98
#301167 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#301167 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301167
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301167#FFFFFF#000000##FFFFFF
##3011671.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002869
Deuteranopia (green-blind)
#002565
Tritanopia (blue-blind)
#1D2A3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #301167;
/* rgb */ color: rgb(48, 17, 103);
/* oklch */ color: oklch(28.8% 0.137 291.7);
Tailwind
colors: {
  custom: {
    50: '#6f5393',
    500: '#301167',
    950: '#000000',
  },
}
SCSS
$custom: #301167;
$custom-light: #6f5393;
$custom-dark: #000000;
JSON
{
  "hex": "#301167",
  "rgb": {
    "r": 48,
    "g": 17,
    "b": 103
  },
  "hsl": {
    "h": 261.628,
    "s": 71.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28825,
    "c": 0.13655,
    "h": 291.7
  },
  "luminance": 0.02009
}

Semantic roles & 50–950 ramp

primary
#301167
secondary
#799F35
accent
#EE39AD
background
#F7F4F9
surface
#EDE8F1
border
#C8C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #301167

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#301167 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva