#301E7A#301E7A

#301E7A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.5% C 0.146 H 283.7°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#301E7A
RGBrgb(48, 30, 122)
HSLhsl(252, 61%, 30%)
HSVhsv(252, 75%, 48%)
CMYKcmyk(60.7%, 75.4%, 0%, 52.2%)
CIE-LABlab(19.89, 35.05, -49.30)
CIE-LCHlch(19.89, 60.50, 305.41°)
OKLaboklab(32.48% 0.0345 -0.142)
OKLCHoklch(32.48% 0.146 283.7)
XYZxyz(5.1950, 2.9617, 18.7065)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E7A #687A1E
analogous
#1E3A7A #301E7A #5E1E7A
triadic
#301E7A #7A301E #1E7A30
tetradic
#301E7A #7A1E3A #687A1E #1E7A5E
square
#301E7A #7A1E3A #687A1E #1E7A5E
split-complementary
#301E7A #7A5E1E #3A7A1E
monochromatic
#0A0619 #1D1249 #301E7A #432AAB #5E42D0

Accessibility & contrast

On white

13.19
#301E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#301E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301E7A
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E7A#FFFFFF#000000##FFFFFF
##301E7A1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002D78
Tritanopia (blue-blind)
#04374A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #301e7a;
/* rgb */ color: rgb(48, 30, 122);
/* oklch */ color: oklch(32.5% 0.146 283.7);
Tailwind
colors: {
  custom: {
    50: '#725ca1',
    500: '#301e7a',
    950: '#000000',
  },
}
SCSS
$custom: #301e7a;
$custom-light: #725ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#301e7a",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 122
  },
  "hsl": {
    "h": 251.739,
    "s": 60.526,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32477,
    "c": 0.14616,
    "h": 283.7
  },
  "luminance": 0.02962
}

Semantic roles & 50–950 ramp

primary
#301E7A
secondary
#99AE46
accent
#E444C4
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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