#301E88#301E88

#301E88 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.164 H 280.9°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#301E88
RGBrgb(48, 30, 136)
HSLhsl(250, 64%, 33%)
HSVhsv(250, 78%, 53%)
CMYKcmyk(64.7%, 77.9%, 0%, 46.7%)
CIE-LABlab(21.33, 39.54, -55.78)
CIE-LCHlch(21.33, 68.38, 305.33°)
OKLaboklab(33.93% 0.031 -0.161)
OKLCHoklch(33.93% 0.164 280.9)
XYZxyz(6.1257, 3.3340, 23.6085)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E88 #76881E
analogous
#1E4188 #301E88 #651E88
triadic
#301E88 #88301E #1E8830
tetradic
#301E88 #881E41 #76881E #1E8865
square
#301E88 #881E41 #76881E #1E8865
split-complementary
#301E88 #88651E #41881E
monochromatic
#0D0824 #1E1356 #301E88 #4229BA #6149D7

Accessibility & contrast

On white

12.60
#301E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301E88
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E88#FFFFFF#000000##FFFFFF
##301E881.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301e88;
/* rgb */ color: rgb(48, 30, 136);
/* oklch */ color: oklch(33.9% 0.164 280.9);
Tailwind
colors: {
  custom: {
    50: '#755dac',
    500: '#301e88',
    950: '#000000',
  },
}
SCSS
$custom: #301e88;
$custom-light: #755dac;
$custom-dark: #000000;
JSON
{
  "hex": "#301e88",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 136
  },
  "hsl": {
    "h": 250.189,
    "s": 63.855,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33933,
    "c": 0.16391,
    "h": 280.9
  },
  "luminance": 0.03334
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #301E88

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

Preview Lab → · Contrast checker → · Palette generator →

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