#301E89#301E89

#301E89 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.165 H 280.7°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#301E89
RGBrgb(48, 30, 137)
HSLhsl(250, 64%, 33%)
HSVhsv(250, 78%, 54%)
CMYKcmyk(65%, 78.1%, 0%, 46.3%)
CIE-LABlab(21.44, 39.86, -56.23)
CIE-LCHlch(21.44, 68.93, 305.33°)
OKLaboklab(34.04% 0.0307 -0.1623)
OKLCHoklch(34.04% 0.165 280.7)
XYZxyz(6.1971, 3.3626, 23.9845)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E89 #77891E
analogous
#1E4289 #301E89 #651E89
triadic
#301E89 #89301E #1E8930
tetradic
#301E89 #891E42 #77891E #1E8965
square
#301E89 #891E42 #77891E #1E8965
split-complementary
#301E89 #89651E #42891E
monochromatic
#0D0825 #1E1357 #301E89 #4229BB #624AD7

Accessibility & contrast

On white

12.56
#301E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301E89
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E89#FFFFFF#000000##FFFFFF
##301E891.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301e89;
/* rgb */ color: rgb(48, 30, 137);
/* oklch */ color: oklch(34.0% 0.165 280.7);
Tailwind
colors: {
  custom: {
    50: '#755dad',
    500: '#301e89',
    950: '#000000',
  },
}
SCSS
$custom: #301e89;
$custom-light: #755dad;
$custom-dark: #000000;
JSON
{
  "hex": "#301e89",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 137
  },
  "hsl": {
    "h": 250.093,
    "s": 64.072,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34039,
    "c": 0.16515,
    "h": 280.7
  },
  "luminance": 0.03363
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #301E89

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

Preview Lab → · Contrast checker → · Palette generator →

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