#301A71#301A71

#301A71 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.0% C 0.139 H 286.7°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#301A71
RGBrgb(48, 26, 113)
HSLhsl(255, 63%, 27%)
HSVhsv(255, 77%, 44%)
CMYKcmyk(57.5%, 77%, 0%, 55.7%)
CIE-LABlab(18.18, 34.44, -46.32)
CIE-LCHlch(18.18, 57.72, 306.63°)
OKLaboklab(31% 0.0401 -0.1333)
OKLCHoklch(31% 0.139 286.7)
XYZxyz(4.5681, 2.5592, 15.8728)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A71 #5B711A
analogous
#1A3071 #301A71 #5B1A71
triadic
#301A71 #71301A #1A7130
tetradic
#301A71 #711A30 #5B711A #1A715B
square
#301A71 #711A30 #5B711A #1A715B
split-complementary
#301A71 #715B1A #30711A
monochromatic
#0B0619 #1B0F3F #301A71 #4525A3 #5C35D0

Accessibility & contrast

On white

13.89
#301A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#301A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A71
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A71#FFFFFF#000000##FFFFFF
##301A711.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#002A6F
Tritanopia (blue-blind)
#143244
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #301a71;
/* rgb */ color: rgb(48, 26, 113);
/* oklch */ color: oklch(31.0% 0.139 286.7);
Tailwind
colors: {
  custom: {
    50: '#70599b',
    500: '#301a71',
    950: '#000000',
  },
}
SCSS
$custom: #301a71;
$custom-light: #70599b;
$custom-dark: #000000;
JSON
{
  "hex": "#301a71",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 255.172,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30996,
    "c": 0.13917,
    "h": 286.7
  },
  "luminance": 0.02559
}

Semantic roles & 50–950 ramp

primary
#301A71
secondary
#8CA641
accent
#E642BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301A71

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

Preview Lab → · Contrast checker → · Palette generator →

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