#301E76#301E76

#301E76 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.1% C 0.141 H 284.5°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#301E76
RGBrgb(48, 30, 118)
HSLhsl(252, 59%, 29%)
HSVhsv(252, 75%, 46%)
CMYKcmyk(59.3%, 74.6%, 0%, 53.7%)
CIE-LABlab(19.49, 33.76, -47.40)
CIE-LCHlch(19.49, 58.19, 305.46°)
OKLaboklab(32.07% 0.0354 -0.1364)
OKLCHoklch(32.07% 0.141 284.5)
XYZxyz(4.9522, 2.8646, 17.4280)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E76 #64761E
analogous
#1E3876 #301E76 #5C1E76
triadic
#301E76 #76301E #1E7630
tetradic
#301E76 #761E38 #64761E #1E765C
square
#301E76 #761E38 #64761E #1E765C
split-complementary
#301E76 #765C1E #38761E
monochromatic
#0A0618 #1C1245 #301E76 #442AA7 #5D40CE

Accessibility & contrast

On white

13.35
#301E76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#301E76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301E76
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E76#FFFFFF#000000##FFFFFF
##301E761.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#002C74
Tritanopia (blue-blind)
#0C3648
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #301e76;
/* rgb */ color: rgb(48, 30, 118);
/* oklch */ color: oklch(32.1% 0.141 284.5);
Tailwind
colors: {
  custom: {
    50: '#715c9e',
    500: '#301e76',
    950: '#000000',
  },
}
SCSS
$custom: #301e76;
$custom-light: #715c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#301e76",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 118
  },
  "hsl": {
    "h": 252.273,
    "s": 59.459,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32075,
    "c": 0.14096,
    "h": 284.5
  },
  "luminance": 0.02865
}

Semantic roles & 50–950 ramp

primary
#301E76
secondary
#95AA46
accent
#E345C2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301E76

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

Preview Lab → · Contrast checker → · Palette generator →

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