#301D88#301D88

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

Color values

HEX#301D88
RGBrgb(48, 29, 136)
HSLhsl(251, 65%, 32%)
HSVhsv(251, 79%, 53%)
CMYKcmyk(64.7%, 78.7%, 0%, 46.7%)
CIE-LABlab(21.15, 40.07, -56.09)
CIE-LCHlch(21.15, 68.94, 305.54°)
OKLaboklab(33.8% 0.0316 -0.1618)
OKLCHoklch(33.8% 0.165 281.1)
XYZxyz(6.1008, 3.2842, 23.6002)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D88 #75881D
analogous
#1D4088 #301D88 #651D88
triadic
#301D88 #88301D #1D8830
tetradic
#301D88 #881D40 #75881D #1D8865
square
#301D88 #881D40 #75881D #1D8865
split-complementary
#301D88 #88651D #40881D
monochromatic
#0C0723 #1E1256 #301D88 #4228BA #6148D8

Accessibility & contrast

On white

12.67
#301D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301D88
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D88#FFFFFF#000000##FFFFFF
##301D881.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#002F86
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #301d88;
/* rgb */ color: rgb(48, 29, 136);
/* oklch */ color: oklch(33.8% 0.165 281.1);
Tailwind
colors: {
  custom: {
    50: '#755cac',
    500: '#301d88',
    950: '#000000',
  },
}
SCSS
$custom: #301d88;
$custom-light: #755cac;
$custom-dark: #000000;
JSON
{
  "hex": "#301d88",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 136
  },
  "hsl": {
    "h": 250.654,
    "s": 64.848,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33801,
    "c": 0.16491,
    "h": 281.1
  },
  "luminance": 0.03285
}

Semantic roles & 50–950 ramp

primary
#301D88
secondary
#A5BA47
accent
#E840CA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301D88

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

Preview Lab → · Contrast checker → · Palette generator →

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