#301C72#301C72

#301C72 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.138 H 286.0°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#301C72
RGBrgb(48, 28, 114)
HSLhsl(254, 61%, 28%)
HSVhsv(254, 75%, 45%)
CMYKcmyk(57.9%, 75.4%, 0%, 55.3%)
CIE-LABlab(18.69, 33.63, -46.14)
CIE-LCHlch(18.69, 57.10, 306.08°)
OKLaboklab(31.38% 0.0381 -0.1328)
OKLCHoklch(31.38% 0.138 286)
XYZxyz(4.6705, 2.6735, 16.1863)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C72 #5E721C
analogous
#1C3372 #301C72 #5B1C72
triadic
#301C72 #72301C #1C7230
tetradic
#301C72 #721C33 #5E721C #1C725B
square
#301C72 #721C33 #5E721C #1C725B
split-complementary
#301C72 #725B1C #33721C
monochromatic
#0A0619 #1B1041 #301C72 #4528A3 #5C3ACF

Accessibility & contrast

On white

13.68
#301C72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#301C72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C72
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C72#FFFFFF#000000##FFFFFF
##301C721.0013.681.5313.68
#FFFFFF13.681.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003075
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#123345
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #301c72;
/* rgb */ color: rgb(48, 28, 114);
/* oklch */ color: oklch(31.4% 0.138 286.0);
Tailwind
colors: {
  custom: {
    50: '#705a9b',
    500: '#301c72',
    950: '#000000',
  },
}
SCSS
$custom: #301c72;
$custom-light: #705a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#301c72",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 114
  },
  "hsl": {
    "h": 253.953,
    "s": 60.563,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31381,
    "c": 0.13811,
    "h": 286
  },
  "luminance": 0.02674
}

Semantic roles & 50–950 ramp

primary
#301C72
secondary
#8FA643
accent
#E444BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301C72

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

Preview Lab → · Contrast checker → · Palette generator →

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