#301F71#301F71

#301F71 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.7% C 0.133 H 285.5°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#301F71
RGBrgb(48, 31, 113)
HSLhsl(252, 57%, 28%)
HSVhsv(252, 73%, 44%)
CMYKcmyk(57.5%, 72.6%, 0%, 55.7%)
CIE-LABlab(19.23, 31.54, -44.61)
CIE-LCHlch(19.23, 54.64, 305.26°)
OKLaboklab(31.74% 0.0355 -0.1283)
OKLCHoklch(31.74% 0.133 285.5)
XYZxyz(4.6886, 2.8003, 15.9130)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F71 #60711F
analogous
#1F3771 #301F71 #591F71
triadic
#301F71 #71301F #1F7130
tetradic
#301F71 #711F37 #60711F #1F7159
square
#301F71 #711F37 #60711F #1F7159
split-complementary
#301F71 #71591F #37711F
monochromatic
#0A0718 #1C1241 #301F71 #442CA1 #5D40CB

Accessibility & contrast

On white

13.46
#301F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301F71
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F71#FFFFFF#000000##FFFFFF
##301F711.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#002C6F
Tritanopia (blue-blind)
#133445
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #301f71;
/* rgb */ color: rgb(48, 31, 113);
/* oklch */ color: oklch(31.7% 0.133 285.5);
Tailwind
colors: {
  custom: {
    50: '#705c9b',
    500: '#301f71',
    950: '#000000',
  },
}
SCSS
$custom: #301f71;
$custom-light: #705c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#301f71",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 252.439,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31736,
    "c": 0.13312,
    "h": 285.5
  },
  "luminance": 0.02801
}

Semantic roles & 50–950 ramp

primary
#301F71
secondary
#91A547
accent
#E048C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301F71

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

Preview Lab → · Contrast checker → · Palette generator →

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