#301970#301970

#301970 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.139 H 287.2°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#301970
RGBrgb(48, 25, 112)
HSLhsl(256, 64%, 27%)
HSVhsv(256, 78%, 44%)
CMYKcmyk(57.1%, 77.7%, 0%, 56.1%)
CIE-LABlab(17.89, 34.68, -46.16)
CIE-LCHlch(17.89, 57.74, 306.92°)
OKLaboklab(30.76% 0.0412 -0.1328)
OKLCHoklch(30.76% 0.139 287.2)
XYZxyz(4.4903, 2.4933, 15.5707)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301970 #597019
analogous
#192E70 #301970 #5C1970
triadic
#301970 #703019 #197030
tetradic
#301970 #70192E #597019 #19705C
square
#301970 #70192E #597019 #19705C
split-complementary
#301970 #705C19 #2E7019
monochromatic
#0B0619 #1B0E3E #301970 #4524A2 #5C32D1

Accessibility & contrast

On white

14.01
#301970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#301970 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301970
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301970#FFFFFF#000000##FFFFFF
##3019701.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E73
Deuteranopia (green-blind)
#00296E
Tritanopia (blue-blind)
#153143
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #301970;
/* rgb */ color: rgb(48, 25, 112);
/* oklch */ color: oklch(30.8% 0.139 287.2);
Tailwind
colors: {
  custom: {
    50: '#70589a',
    500: '#301970',
    950: '#000000',
  },
}
SCSS
$custom: #301970;
$custom-light: #70589a;
$custom-dark: #000000;
JSON
{
  "hex": "#301970",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 112
  },
  "hsl": {
    "h": 255.862,
    "s": 63.504,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30756,
    "c": 0.13903,
    "h": 287.2
  },
  "luminance": 0.02493
}

Semantic roles & 50–950 ramp

primary
#301970
secondary
#8AA540
accent
#E741BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #301970

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

Preview Lab → · Contrast checker → · Palette generator →

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