#301570#301570

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

Color values

HEX#301570
RGBrgb(48, 21, 112)
HSLhsl(258, 68%, 26%)
HSVhsv(258, 81%, 44%)
CMYKcmyk(57.1%, 81.2%, 0%, 56.1%)
CIE-LABlab(17.15, 36.78, -47.37)
CIE-LCHlch(17.15, 59.97, 307.83°)
OKLaboklab(30.24% 0.0444 -0.1363)
OKLCHoklch(30.24% 0.143 288.1)
XYZxyz(4.4109, 2.3343, 15.5442)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301570 #557015
analogous
#152770 #301570 #5D1570
triadic
#301570 #703015 #157030
tetradic
#301570 #701527 #557015 #15705D
square
#301570 #701527 #557015 #15705D
split-complementary
#301570 #705D15 #277015
monochromatic
#0B051A #1A0B3C #301570 #461FA4 #5C29D7

Accessibility & contrast

On white

14.31
#301570 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#301570 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301570
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301570#FFFFFF#000000##FFFFFF
##3015701.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C73
Deuteranopia (green-blind)
#00286E
Tritanopia (blue-blind)
#152F42
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #301570;
/* rgb */ color: rgb(48, 21, 112);
/* oklch */ color: oklch(30.2% 0.143 288.1);
Tailwind
colors: {
  custom: {
    50: '#71569a',
    500: '#301570',
    950: '#000000',
  },
}
SCSS
$custom: #301570;
$custom-light: #71569a;
$custom-dark: #000000;
JSON
{
  "hex": "#301570",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 112
  },
  "hsl": {
    "h": 257.802,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.3024,
    "c": 0.14335,
    "h": 288.1
  },
  "luminance": 0.02335
}

Semantic roles & 50–950 ramp

primary
#301570
secondary
#86A63B
accent
#EB3DB7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #301570

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

Preview Lab → · Contrast checker → · Palette generator →

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