#301F72#301F72

#301F72 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.8% C 0.134 H 285.2°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#301F72
RGBrgb(48, 31, 114)
HSLhsl(252, 57%, 28%)
HSVhsv(252, 73%, 45%)
CMYKcmyk(57.9%, 72.8%, 0%, 55.3%)
CIE-LABlab(19.32, 31.87, -45.10)
CIE-LCHlch(19.32, 55.23, 305.24°)
OKLaboklab(31.83% 0.0353 -0.1297)
OKLCHoklch(31.83% 0.134 285.2)
XYZxyz(4.7453, 2.8230, 16.2112)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F72 #61721F
analogous
#1F3772 #301F72 #591F72
triadic
#301F72 #72301F #1F7230
tetradic
#301F72 #721F37 #61721F #1F7259
square
#301F72 #721F37 #61721F #1F7259
split-complementary
#301F72 #72591F #37721F
monochromatic
#0A0718 #1C1242 #301F72 #442CA2 #5D40CB

Accessibility & contrast

On white

13.42
#301F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#301F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F72
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F72#FFFFFF#000000##FFFFFF
##301F721.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003174
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#123546
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #301f72;
/* rgb */ color: rgb(48, 31, 114);
/* oklch */ color: oklch(31.8% 0.134 285.2);
Tailwind
colors: {
  custom: {
    50: '#705c9b',
    500: '#301f72',
    950: '#000000',
  },
}
SCSS
$custom: #301f72;
$custom-light: #705c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#301f72",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 252.289,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31833,
    "c": 0.13446,
    "h": 285.2
  },
  "luminance": 0.02823
}

Semantic roles & 50–950 ramp

primary
#301F72
secondary
#92A647
accent
#E047C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301F72

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

Preview Lab → · Contrast checker → · Palette generator →

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