#301E8A#301E8A

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

Color values

HEX#301E8A
RGBrgb(48, 30, 138)
HSLhsl(250, 64%, 33%)
HSVhsv(250, 78%, 54%)
CMYKcmyk(65.2%, 78.3%, 0%, 45.9%)
CIE-LABlab(21.55, 40.18, -56.68)
CIE-LCHlch(21.55, 69.48, 305.33°)
OKLaboklab(34.15% 0.0304 -0.1636)
OKLCHoklch(34.15% 0.166 280.5)
XYZxyz(6.2692, 3.3914, 24.3641)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E8A #788A1E
analogous
#1E428A #301E8A #661E8A
triadic
#301E8A #8A301E #1E8A30
tetradic
#301E8A #8A1E42 #788A1E #1E8A66
square
#301E8A #8A1E42 #788A1E #1E8A66
split-complementary
#301E8A #8A661E #428A1E
monochromatic
#0D0825 #1F1358 #301E8A #4129BC #624BD8

Accessibility & contrast

On white

12.51
#301E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301E8A
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E8A#FFFFFF#000000##FFFFFF
##301E8A1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378D
Deuteranopia (green-blind)
#003088
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #301e8a;
/* rgb */ color: rgb(48, 30, 138);
/* oklch */ color: oklch(34.1% 0.166 280.5);
Tailwind
colors: {
  custom: {
    50: '#755dad',
    500: '#301e8a',
    950: '#000000',
  },
}
SCSS
$custom: #301e8a;
$custom-light: #755dad;
$custom-dark: #000000;
JSON
{
  "hex": "#301e8a",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 250,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34146,
    "c": 0.16639,
    "h": 280.5
  },
  "luminance": 0.03392
}

Semantic roles & 50–950 ramp

primary
#301E8A
secondary
#A7BA4A
accent
#E741CB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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