#301976#301976

#301976 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.147 H 285.6°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#301976
RGBrgb(48, 25, 118)
HSLhsl(255, 65%, 28%)
HSVhsv(255, 79%, 46%)
CMYKcmyk(59.3%, 78.8%, 0%, 53.7%)
CIE-LABlab(18.50, 36.55, -49.02)
CIE-LCHlch(18.50, 61.15, 306.71°)
OKLaboklab(31.37% 0.0395 -0.1412)
OKLCHoklch(31.37% 0.147 285.6)
XYZxyz(4.8356, 2.6314, 17.3891)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301976 #5F7619
analogous
#193076 #301976 #5E1976
triadic
#301976 #763019 #197630
tetradic
#301976 #761930 #5F7619 #19765E
square
#301976 #761930 #5F7619 #19765E
split-complementary
#301976 #765E19 #307619
monochromatic
#0A0519 #1B0E43 #301976 #4524A8 #5D35D4

Accessibility & contrast

On white

13.76
#301976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#301976 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301976
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301976#FFFFFF#000000##FFFFFF
##3019761.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#002A74
Tritanopia (blue-blind)
#0D3346
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #301976;
/* rgb */ color: rgb(48, 25, 118);
/* oklch */ color: oklch(31.4% 0.147 285.6);
Tailwind
colors: {
  custom: {
    50: '#72599e',
    500: '#301976',
    950: '#000000',
  },
}
SCSS
$custom: #301976;
$custom-light: #72599e;
$custom-dark: #000000;
JSON
{
  "hex": "#301976",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 118
  },
  "hsl": {
    "h": 254.839,
    "s": 65.035,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31375,
    "c": 0.1466,
    "h": 285.6
  },
  "luminance": 0.02632
}

Semantic roles & 50–950 ramp

primary
#301976
secondary
#90AB40
accent
#E840BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #301976

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

Preview Lab → · Contrast checker → · Palette generator →

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