#301A72#301A72

#301A72 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.140 H 286.5°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#301A72
RGBrgb(48, 26, 114)
HSLhsl(255, 63%, 27%)
HSVhsv(255, 77%, 45%)
CMYKcmyk(57.9%, 77.2%, 0%, 55.3%)
CIE-LABlab(18.28, 34.76, -46.80)
CIE-LCHlch(18.28, 58.30, 306.60°)
OKLaboklab(31.1% 0.0398 -0.1347)
OKLCHoklch(31.1% 0.14 286.5)
XYZxyz(4.6247, 2.5818, 16.1710)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A72 #5C721A
analogous
#1A3072 #301A72 #5C1A72
triadic
#301A72 #72301A #1A7230
tetradic
#301A72 #721A30 #5C721A #1A725C
square
#301A72 #721A30 #5C721A #1A725C
split-complementary
#301A72 #725C1A #30721A
monochromatic
#0A0619 #1B0F40 #301A72 #4525A4 #5C35D1

Accessibility & contrast

On white

13.85
#301A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#301A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A72
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A72#FFFFFF#000000##FFFFFF
##301A721.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#123244
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #301a72;
/* rgb */ color: rgb(48, 26, 114);
/* oklch */ color: oklch(31.1% 0.140 286.5);
Tailwind
colors: {
  custom: {
    50: '#71599b',
    500: '#301a72',
    950: '#000000',
  },
}
SCSS
$custom: #301a72;
$custom-light: #71599b;
$custom-dark: #000000;
JSON
{
  "hex": "#301a72",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 114
  },
  "hsl": {
    "h": 255,
    "s": 62.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31097,
    "c": 0.14044,
    "h": 286.5
  },
  "luminance": 0.02582
}

Semantic roles & 50–950 ramp

primary
#301A72
secondary
#8DA741
accent
#E642BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301A72

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

Preview Lab → · Contrast checker → · Palette generator →

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