#301E81#301E81

#301E81 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.155 H 282.2°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#301E81
RGBrgb(48, 30, 129)
HSLhsl(251, 62%, 31%)
HSVhsv(251, 77%, 51%)
CMYKcmyk(62.8%, 76.7%, 0%, 49.4%)
CIE-LABlab(20.60, 37.31, -52.58)
CIE-LCHlch(20.60, 64.47, 305.36°)
OKLaboklab(33.2% 0.0328 -0.1516)
OKLCHoklch(33.2% 0.155 282.2)
XYZxyz(5.6444, 3.1415, 21.0736)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E81 #6F811E
analogous
#1E3D81 #301E81 #611E81
triadic
#301E81 #81301E #1E8130
tetradic
#301E81 #811E3D #6F811E #1E8161
square
#301E81 #811E3D #6F811E #1E8161
split-complementary
#301E81 #81611E #3D811E
monochromatic
#0B071E #1E124F #301E81 #422AB3 #5F46D4

Accessibility & contrast

On white

12.90
#301E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301E81
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E81#FFFFFF#000000##FFFFFF
##301E811.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301e81;
/* rgb */ color: rgb(48, 30, 129);
/* oklch */ color: oklch(33.2% 0.155 282.2);
Tailwind
colors: {
  custom: {
    50: '#735ca7',
    500: '#301e81',
    950: '#000000',
  },
}
SCSS
$custom: #301e81;
$custom-light: #735ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#301e81",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 129
  },
  "hsl": {
    "h": 250.909,
    "s": 62.264,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33196,
    "c": 0.15511,
    "h": 282.2
  },
  "luminance": 0.03142
}

Semantic roles & 50–950 ramp

primary
#301E81
secondary
#A0B447
accent
#E542C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301E81

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

Preview Lab → · Contrast checker → · Palette generator →

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