#301D8B#301D8B

#301D8B is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.169 H 280.5°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#301D8B
RGBrgb(48, 29, 139)
HSLhsl(250, 65%, 33%)
HSVhsv(250, 79%, 55%)
CMYKcmyk(65.5%, 79.1%, 0%, 45.5%)
CIE-LABlab(21.47, 41.02, -57.43)
CIE-LCHlch(21.47, 70.58, 305.53°)
OKLaboklab(34.12% 0.0308 -0.1658)
OKLCHoklch(34.12% 0.169 280.5)
XYZxyz(6.3170, 3.3707, 24.7388)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D8B #788B1D
analogous
#1D418B #301D8B #671D8B
triadic
#301D8B #8B301D #1D8B30
tetradic
#301D8B #8B1D41 #788B1D #1D8B67
square
#301D8B #8B1D41 #788B1D #1D8B67
split-complementary
#301D8B #8B671D #418B1D
monochromatic
#0D0826 #1F1258 #301D8B #4128BE #6249D9

Accessibility & contrast

On white

12.54
#301D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#301D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D8B
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D8B#FFFFFF#000000##FFFFFF
##301D8B1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #301d8b;
/* rgb */ color: rgb(48, 29, 139);
/* oklch */ color: oklch(34.1% 0.169 280.5);
Tailwind
colors: {
  custom: {
    50: '#755cae',
    500: '#301d8b',
    950: '#000000',
  },
}
SCSS
$custom: #301d8b;
$custom-light: #755cae;
$custom-dark: #000000;
JSON
{
  "hex": "#301d8b",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 250.364,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34124,
    "c": 0.1686,
    "h": 280.5
  },
  "luminance": 0.03371
}

Semantic roles & 50–950 ramp

primary
#301D8B
secondary
#A7BB49
accent
#E83FCB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #301D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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