#301F85#301F85

#301F85 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.159 H 281.3°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#301F85
RGBrgb(48, 31, 133)
HSLhsl(250, 62%, 32%)
HSVhsv(250, 77%, 52%)
CMYKcmyk(63.9%, 76.7%, 0%, 47.8%)
CIE-LABlab(21.21, 38.03, -54.10)
CIE-LCHlch(21.21, 66.13, 305.11°)
OKLaboklab(33.75% 0.0311 -0.156)
OKLCHoklch(33.75% 0.159 281.3)
XYZxyz(5.9412, 3.3014, 22.5099)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F85 #74851F
analogous
#1F4185 #301F85 #631F85
triadic
#301F85 #85301F #1F8530
tetradic
#301F85 #851F41 #74851F #1F8563
square
#301F85 #851F41 #74851F #1F8563
split-complementary
#301F85 #85631F #41851F
monochromatic
#0C0822 #1E1353 #301F85 #422BB7 #614AD5

Accessibility & contrast

On white

12.65
#301F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#301F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F85
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F85#FFFFFF#000000##FFFFFF
##301F851.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301f85;
/* rgb */ color: rgb(48, 31, 133);
/* oklch */ color: oklch(33.8% 0.159 281.3);
Tailwind
colors: {
  custom: {
    50: '#745daa',
    500: '#301f85',
    950: '#000000',
  },
}
SCSS
$custom: #301f85;
$custom-light: #745daa;
$custom-dark: #000000;
JSON
{
  "hex": "#301f85",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 250,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33752,
    "c": 0.15911,
    "h": 281.3
  },
  "luminance": 0.03302
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #301F85

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

Preview Lab → · Contrast checker → · Palette generator →

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