#301E82#301E82

#301E82 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.3% C 0.156 H 282.0°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#301E82
RGBrgb(48, 30, 130)
HSLhsl(251, 63%, 31%)
HSVhsv(251, 77%, 51%)
CMYKcmyk(63.1%, 76.9%, 0%, 49%)
CIE-LABlab(20.71, 37.63, -53.04)
CIE-LCHlch(20.71, 65.03, 305.35°)
OKLaboklab(33.3% 0.0325 -0.153)
OKLCHoklch(33.3% 0.156 282)
XYZxyz(5.7112, 3.1682, 21.4253)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E82 #70821E
analogous
#1E3E82 #301E82 #621E82
triadic
#301E82 #82301E #1E8230
tetradic
#301E82 #821E3E #70821E #1E8262
square
#301E82 #821E3E #70821E #1E8262
split-complementary
#301E82 #82621E #3E821E
monochromatic
#0B071F #1E1350 #301E82 #4229B4 #6046D4

Accessibility & contrast

On white

12.85
#301E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#301E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301E82
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E82#FFFFFF#000000##FFFFFF
##301E821.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#002E80
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #301e82;
/* rgb */ color: rgb(48, 30, 130);
/* oklch */ color: oklch(33.3% 0.156 282.0);
Tailwind
colors: {
  custom: {
    50: '#745ca7',
    500: '#301e82',
    950: '#000000',
  },
}
SCSS
$custom: #301e82;
$custom-light: #745ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#301e82",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 130
  },
  "hsl": {
    "h": 250.8,
    "s": 62.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.333,
    "c": 0.15638,
    "h": 282
  },
  "luminance": 0.03169
}

Semantic roles & 50–950 ramp

primary
#301E82
secondary
#A1B547
accent
#E642C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301E82

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

Preview Lab → · Contrast checker → · Palette generator →

#301E82 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva