#301E80#301E80

#301E80 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.154 H 282.4°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#301E80
RGBrgb(48, 30, 128)
HSLhsl(251, 62%, 31%)
HSVhsv(251, 77%, 50%)
CMYKcmyk(62.5%, 76.6%, 0%, 49.8%)
CIE-LABlab(20.50, 36.98, -52.12)
CIE-LCHlch(20.50, 63.91, 305.36°)
OKLaboklab(33.09% 0.033 -0.1503)
OKLCHoklch(33.09% 0.154 282.4)
XYZxyz(5.5783, 3.1151, 20.7252)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E80 #6E801E
analogous
#1E3D80 #301E80 #611E80
triadic
#301E80 #80301E #1E8030
tetradic
#301E80 #801E3D #6E801E #1E8061
square
#301E80 #801E3D #6E801E #1E8061
split-complementary
#301E80 #80611E #3D801E
monochromatic
#0B071D #1D124E #301E80 #432AB2 #5F45D3

Accessibility & contrast

On white

12.94
#301E80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#301E80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301E80
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E80#FFFFFF#000000##FFFFFF
##301E801.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#002E7E
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #301e80;
/* rgb */ color: rgb(48, 30, 128);
/* oklch */ color: oklch(33.1% 0.154 282.4);
Tailwind
colors: {
  custom: {
    50: '#735ca6',
    500: '#301e80',
    950: '#000000',
  },
}
SCSS
$custom: #301e80;
$custom-light: #735ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#301e80",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 128
  },
  "hsl": {
    "h": 251.02,
    "s": 62.025,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33092,
    "c": 0.15385,
    "h": 282.4
  },
  "luminance": 0.03115
}

Semantic roles & 50–950 ramp

primary
#301E80
secondary
#9FB347
accent
#E543C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301E80

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

Preview Lab → · Contrast checker → · Palette generator →

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