#301F84#301F84

#301F84 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.158 H 281.4°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#301F84
RGBrgb(48, 31, 132)
HSLhsl(250, 62%, 32%)
HSVhsv(250, 77%, 52%)
CMYKcmyk(63.6%, 76.5%, 0%, 48.2%)
CIE-LABlab(21.11, 37.71, -53.64)
CIE-LCHlch(21.11, 65.57, 305.11°)
OKLaboklab(33.65% 0.0313 -0.1547)
OKLCHoklch(33.65% 0.158 281.4)
XYZxyz(5.8725, 3.2739, 22.1478)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F84 #73841F
analogous
#1F4184 #301F84 #631F84
triadic
#301F84 #84301F #1F8430
tetradic
#301F84 #841F41 #73841F #1F8463
square
#301F84 #841F41 #73841F #1F8463
split-complementary
#301F84 #84631F #41841F
monochromatic
#0C0821 #1E1352 #301F84 #422BB6 #6149D4

Accessibility & contrast

On white

12.69
#301F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#301F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F84
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F84#FFFFFF#000000##FFFFFF
##301F841.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003687
Deuteranopia (green-blind)
#002F82
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #301f84;
/* rgb */ color: rgb(48, 31, 132);
/* oklch */ color: oklch(33.6% 0.158 281.4);
Tailwind
colors: {
  custom: {
    50: '#745da9',
    500: '#301f84',
    950: '#000000',
  },
}
SCSS
$custom: #301f84;
$custom-light: #745da9;
$custom-dark: #000000;
JSON
{
  "hex": "#301f84",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 250.099,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33647,
    "c": 0.15785,
    "h": 281.4
  },
  "luminance": 0.03274
}

Semantic roles & 50–950 ramp

primary
#301F84
secondary
#A4B748
accent
#E543CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301F84

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

Preview Lab → · Contrast checker → · Palette generator →

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