#301979#301979

#301979 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.150 H 284.9°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#301979
RGBrgb(48, 25, 121)
HSLhsl(254, 66%, 29%)
HSVhsv(254, 79%, 47%)
CMYKcmyk(60.3%, 79.3%, 0%, 52.5%)
CIE-LABlab(18.82, 37.49, -50.43)
CIE-LCHlch(18.82, 62.84, 306.62°)
OKLaboklab(31.69% 0.0387 -0.1453)
OKLCHoklch(31.69% 0.15 284.9)
XYZxyz(5.0167, 2.7038, 18.3430)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301979 #627919
analogous
#193279 #301979 #601979
triadic
#301979 #793019 #197930
tetradic
#301979 #791932 #627919 #197960
square
#301979 #791932 #627919 #197960
split-complementary
#301979 #796019 #327919
monochromatic
#0A0519 #1C0F46 #301979 #4423AC #5D37D6

Accessibility & contrast

On white

13.63
#301979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#301979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301979
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301979#FFFFFF#000000##FFFFFF
##3019791.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002B77
Tritanopia (blue-blind)
#073448
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #301979;
/* rgb */ color: rgb(48, 25, 121);
/* oklch */ color: oklch(31.7% 0.150 284.9);
Tailwind
colors: {
  custom: {
    50: '#7259a1',
    500: '#301979',
    950: '#000000',
  },
}
SCSS
$custom: #301979;
$custom-light: #7259a1;
$custom-dark: #000000;
JSON
{
  "hex": "#301979",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 254.375,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3169,
    "c": 0.15034,
    "h": 284.9
  },
  "luminance": 0.02704
}

Semantic roles & 50–950 ramp

primary
#301979
secondary
#93AE40
accent
#E93FC0
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301979

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

Preview Lab → · Contrast checker → · Palette generator →

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