#301F82#301F82

#301F82 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.155 H 281.8°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#301F82
RGBrgb(48, 31, 130)
HSLhsl(250, 61%, 32%)
HSVhsv(250, 76%, 51%)
CMYKcmyk(63.1%, 76.2%, 0%, 49%)
CIE-LABlab(20.90, 37.07, -52.72)
CIE-LCHlch(20.90, 64.45, 305.11°)
OKLaboklab(33.44% 0.0318 -0.152)
OKLCHoklch(33.44% 0.155 281.8)
XYZxyz(5.7369, 3.2196, 21.4339)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F82 #71821F
analogous
#1F4082 #301F82 #621F82
triadic
#301F82 #82301F #1F8230
tetradic
#301F82 #821F40 #71821F #1F8262
square
#301F82 #821F40 #71821F #1F8262
split-complementary
#301F82 #82621F #40821F
monochromatic
#0C071F #1E1351 #301F82 #422BB3 #6048D3

Accessibility & contrast

On white

12.77
#301F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#301F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F82
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F82#FFFFFF#000000##FFFFFF
##301F821.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#002F80
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #301f82;
/* rgb */ color: rgb(48, 31, 130);
/* oklch */ color: oklch(33.4% 0.155 281.8);
Tailwind
colors: {
  custom: {
    50: '#735da7',
    500: '#301f82',
    950: '#000000',
  },
}
SCSS
$custom: #301f82;
$custom-light: #735da7;
$custom-dark: #000000;
JSON
{
  "hex": "#301f82",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 250.303,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3344,
    "c": 0.15531,
    "h": 281.8
  },
  "luminance": 0.0322
}

Semantic roles & 50–950 ramp

primary
#301F82
secondary
#A2B548
accent
#E543C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301F82

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

Preview Lab → · Contrast checker → · Palette generator →

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