#301574#301574

#301574 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.148 H 286.9°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#301574
RGBrgb(48, 21, 116)
HSLhsl(257, 69%, 27%)
HSVhsv(257, 82%, 45%)
CMYKcmyk(58.6%, 81.9%, 0%, 54.5%)
CIE-LABlab(17.58, 37.99, -49.26)
CIE-LCHlch(17.58, 62.20, 307.64°)
OKLaboklab(30.67% 0.0431 -0.1418)
OKLCHoklch(30.67% 0.148 286.9)
XYZxyz(4.6385, 2.4254, 16.7433)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301574 #597415
analogous
#152974 #301574 #601574
triadic
#301574 #743015 #157430
tetradic
#301574 #741529 #597415 #157460
square
#301574 #741529 #597415 #157460
split-complementary
#301574 #746015 #297415
monochromatic
#0B051A #1B0C40 #301574 #451EA8 #5C2BD9

Accessibility & contrast

On white

14.14
#301574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#301574 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301574
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301574#FFFFFF#000000##FFFFFF
##3015741.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002872
Tritanopia (blue-blind)
#103144
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #301574;
/* rgb */ color: rgb(48, 21, 116);
/* oklch */ color: oklch(30.7% 0.148 286.9);
Tailwind
colors: {
  custom: {
    50: '#71569d',
    500: '#301574',
    950: '#000000',
  },
}
SCSS
$custom: #301574;
$custom-light: #71569d;
$custom-dark: #000000;
JSON
{
  "hex": "#301574",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 116
  },
  "hsl": {
    "h": 257.053,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30665,
    "c": 0.14823,
    "h": 286.9
  },
  "luminance": 0.02426
}

Semantic roles & 50–950 ramp

primary
#301574
secondary
#8AAA3B
accent
#EC3CBA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #301574

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

Preview Lab → · Contrast checker → · Palette generator →

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