#301974#301974

#301974 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.144 H 286.2°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#301974
RGBrgb(48, 25, 116)
HSLhsl(255, 65%, 28%)
HSVhsv(255, 78%, 45%)
CMYKcmyk(58.6%, 78.4%, 0%, 54.5%)
CIE-LABlab(18.30, 35.93, -48.08)
CIE-LCHlch(18.30, 60.02, 306.77°)
OKLaboklab(31.17% 0.0401 -0.1384)
OKLCHoklch(31.17% 0.144 286.2)
XYZxyz(4.7180, 2.5843, 16.7698)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301974 #5D7419
analogous
#192F74 #301974 #5E1974
triadic
#301974 #743019 #197430
tetradic
#301974 #74192F #5D7419 #19745E
square
#301974 #74192F #5D7419 #19745E
split-complementary
#301974 #745E19 #2F7419
monochromatic
#0A0519 #1B0E42 #301974 #4524A6 #5C34D3

Accessibility & contrast

On white

13.84
#301974 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#301974 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301974
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301974#FFFFFF#000000##FFFFFF
##3019741.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F77
Deuteranopia (green-blind)
#002A72
Tritanopia (blue-blind)
#103345
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #301974;
/* rgb */ color: rgb(48, 25, 116);
/* oklch */ color: oklch(31.2% 0.144 286.2);
Tailwind
colors: {
  custom: {
    50: '#71599d',
    500: '#301974',
    950: '#000000',
  },
}
SCSS
$custom: #301974;
$custom-light: #71599d;
$custom-dark: #000000;
JSON
{
  "hex": "#301974",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 116
  },
  "hsl": {
    "h": 255.165,
    "s": 64.539,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31167,
    "c": 0.14409,
    "h": 286.2
  },
  "luminance": 0.02585
}

Semantic roles & 50–950 ramp

primary
#301974
secondary
#8EA940
accent
#E840BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #301974

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

Preview Lab → · Contrast checker → · Palette generator →

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