#301D80#301D80

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

Color values

HEX#301D80
RGBrgb(48, 29, 128)
HSLhsl(252, 63%, 31%)
HSVhsv(252, 77%, 50%)
CMYKcmyk(62.5%, 77.3%, 0%, 49.8%)
CIE-LABlab(20.30, 37.54, -52.44)
CIE-LCHlch(20.30, 64.49, 305.60°)
OKLaboklab(32.96% 0.0338 -0.1512)
OKLCHoklch(32.96% 0.155 282.6)
XYZxyz(5.5534, 3.0652, 20.7169)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D80 #6D801D
analogous
#1D3B80 #301D80 #611D80
triadic
#301D80 #80301D #1D8030
tetradic
#301D80 #801D3B #6D801D #1D8061
square
#301D80 #801D3B #6D801D #1D8061
split-complementary
#301D80 #80611D #3B801D
monochromatic
#0B061C #1D124E #301D80 #4328B2 #5F43D4

Accessibility & contrast

On white

13.02
#301D80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#301D80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D80
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D80#FFFFFF#000000##FFFFFF
##301D801.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#002D7E
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #301d80;
/* rgb */ color: rgb(48, 29, 128);
/* oklch */ color: oklch(33.0% 0.155 282.6);
Tailwind
colors: {
  custom: {
    50: '#735ca6',
    500: '#301d80',
    950: '#000000',
  },
}
SCSS
$custom: #301d80;
$custom-light: #735ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#301d80",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 128
  },
  "hsl": {
    "h": 251.515,
    "s": 63.057,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32955,
    "c": 0.15492,
    "h": 282.6
  },
  "luminance": 0.03066
}

Semantic roles & 50–950 ramp

primary
#301D80
secondary
#9EB345
accent
#E642C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301D80

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

Preview Lab → · Contrast checker → · Palette generator →

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