#301D8F#301D8F

#301D8F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.173 H 279.8°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#301D8F
RGBrgb(48, 29, 143)
HSLhsl(250, 66%, 34%)
HSVhsv(250, 80%, 56%)
CMYKcmyk(66.4%, 79.7%, 0%, 43.9%)
CIE-LABlab(21.91, 42.27, -59.21)
CIE-LCHlch(21.91, 72.75, 305.52°)
OKLaboklab(34.56% 0.0296 -0.1709)
OKLCHoklch(34.56% 0.173 279.8)
XYZxyz(6.6146, 3.4897, 26.3063)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D8F #7C8F1D
analogous
#1D438F #301D8F #691D8F
triadic
#301D8F #8F301D #1D8F30
tetradic
#301D8F #8F1D43 #7C8F1D #1D8F69
square
#301D8F #8F1D43 #7C8F1D #1D8F69
split-complementary
#301D8F #8F691D #438F1D
monochromatic
#0E0829 #1F135C #301D8F #4127C2 #644CDB

Accessibility & contrast

On white

12.37
#301D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#301D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D8F
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D8F#FFFFFF#000000##FFFFFF
##301D8F1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #301d8f;
/* rgb */ color: rgb(48, 29, 143);
/* oklch */ color: oklch(34.6% 0.173 279.8);
Tailwind
colors: {
  custom: {
    50: '#765cb1',
    500: '#301d8f',
    950: '#000000',
  },
}
SCSS
$custom: #301d8f;
$custom-light: #765cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#301d8f",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 143
  },
  "hsl": {
    "h": 250,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34559,
    "c": 0.17348,
    "h": 279.8
  },
  "luminance": 0.0349
}

Semantic roles & 50–950 ramp

primary
#301D8F
secondary
#AABD4B
accent
#E93FCD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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