#301372#301372

#301372 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.148 H 287.8°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#301372
RGBrgb(48, 19, 114)
HSLhsl(258, 71%, 26%)
HSVhsv(258, 83%, 45%)
CMYKcmyk(57.9%, 83.3%, 0%, 55.3%)
CIE-LABlab(17.03, 38.35, -48.87)
CIE-LCHlch(17.03, 62.12, 308.12°)
OKLaboklab(30.22% 0.0452 -0.1406)
OKLCHoklch(30.22% 0.148 287.8)
XYZxyz(4.4882, 2.3088, 16.1255)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301372 #557213
analogous
#132572 #301372 #5F1372
triadic
#301372 #723013 #137230
tetradic
#301372 #721325 #557213 #13725F
square
#301372 #721325 #557213 #13725F
split-complementary
#301372 #725F13 #257213
monochromatic
#0B041A #1A0A3E #301372 #461CA6 #5C25DB

Accessibility & contrast

On white

14.37
#301372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#301372 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301372
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301372#FFFFFF#000000##FFFFFF
##3013721.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002770
Tritanopia (blue-blind)
#132F43
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #301372;
/* rgb */ color: rgb(48, 19, 114);
/* oklch */ color: oklch(30.2% 0.148 287.8);
Tailwind
colors: {
  custom: {
    50: '#71559c',
    500: '#301372',
    950: '#000000',
  },
}
SCSS
$custom: #301372;
$custom-light: #71559c;
$custom-dark: #000000;
JSON
{
  "hex": "#301372",
  "rgb": {
    "r": 48,
    "g": 19,
    "b": 114
  },
  "hsl": {
    "h": 258.316,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.3022,
    "c": 0.14773,
    "h": 287.8
  },
  "luminance": 0.02309
}

Semantic roles & 50–950 ramp

primary
#301372
secondary
#86A938
accent
#EE3AB7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #301372

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

Preview Lab → · Contrast checker → · Palette generator →

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