#301474#301474

#301474 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.149 H 287.1°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#301474
RGBrgb(48, 20, 116)
HSLhsl(258, 71%, 27%)
HSVhsv(258, 83%, 45%)
CMYKcmyk(58.6%, 82.8%, 0%, 54.5%)
CIE-LABlab(17.41, 38.47, -49.53)
CIE-LCHlch(17.41, 62.72, 307.84°)
OKLaboklab(30.55% 0.0438 -0.1426)
OKLCHoklch(30.55% 0.149 287.1)
XYZxyz(4.6205, 2.3894, 16.7373)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301474 #587414
analogous
#142874 #301474 #601474
triadic
#301474 #743014 #147430
tetradic
#301474 #741428 #587414 #147460
square
#301474 #741428 #587414 #147460
split-complementary
#301474 #746014 #287414
monochromatic
#0B051A #1A0B40 #301474 #461DA8 #5C28DA

Accessibility & contrast

On white

14.21
#301474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#301474 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301474
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301474#FFFFFF#000000##FFFFFF
##3014741.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301474;
/* rgb */ color: rgb(48, 20, 116);
/* oklch */ color: oklch(30.5% 0.149 287.1);
Tailwind
colors: {
  custom: {
    50: '#72569d',
    500: '#301474',
    950: '#000000',
  },
}
SCSS
$custom: #301474;
$custom-light: #72569d;
$custom-dark: #000000;
JSON
{
  "hex": "#301474",
  "rgb": {
    "r": 48,
    "g": 20,
    "b": 116
  },
  "hsl": {
    "h": 257.5,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30549,
    "c": 0.14919,
    "h": 287.1
  },
  "luminance": 0.0239
}

Semantic roles & 50–950 ramp

primary
#301474
secondary
#89AA3A
accent
#ED3AB9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #301474

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

Preview Lab → · Contrast checker → · Palette generator →

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