#301D8C#301D8C

#301D8C is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.170 H 280.3°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#301D8C
RGBrgb(48, 29, 140)
HSLhsl(250, 66%, 33%)
HSVhsv(250, 79%, 55%)
CMYKcmyk(65.7%, 79.3%, 0%, 45.1%)
CIE-LABlab(21.58, 41.33, -57.88)
CIE-LCHlch(21.58, 71.12, 305.53°)
OKLaboklab(34.23% 0.0305 -0.1671)
OKLCHoklch(34.23% 0.17 280.3)
XYZxyz(6.3904, 3.4001, 25.1254)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D8C #798C1D
analogous
#1D428C #301D8C #671D8C
triadic
#301D8C #8C301D #1D8C30
tetradic
#301D8C #8C1D42 #798C1D #1D8C67
square
#301D8C #8C1D42 #798C1D #1D8C67
split-complementary
#301D8C #8C671D #428C1D
monochromatic
#0D0827 #1F1259 #301D8C #4128BF #624AD9

Accessibility & contrast

On white

12.50
#301D8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#301D8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D8C
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D8C#FFFFFF#000000##FFFFFF
##301D8C1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #301d8c;
/* rgb */ color: rgb(48, 29, 140);
/* oklch */ color: oklch(34.2% 0.170 280.3);
Tailwind
colors: {
  custom: {
    50: '#765caf',
    500: '#301d8c',
    950: '#000000',
  },
}
SCSS
$custom: #301d8c;
$custom-light: #765caf;
$custom-dark: #000000;
JSON
{
  "hex": "#301d8c",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 140
  },
  "hsl": {
    "h": 250.27,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34232,
    "c": 0.16982,
    "h": 280.3
  },
  "luminance": 0.03401
}

Semantic roles & 50–950 ramp

primary
#301D8C
secondary
#A8BC49
accent
#E93FCC
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #301D8C

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

Preview Lab → · Contrast checker → · Palette generator →

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