#301F76#301F76

#301F76 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.2% C 0.140 H 284.3°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#301F76
RGBrgb(48, 31, 118)
HSLhsl(252, 58%, 29%)
HSVhsv(252, 74%, 46%)
CMYKcmyk(59.3%, 73.7%, 0%, 53.7%)
CIE-LABlab(19.70, 33.17, -47.05)
CIE-LCHlch(19.70, 57.57, 305.19°)
OKLaboklab(32.23% 0.0345 -0.1354)
OKLCHoklch(32.23% 0.14 284.3)
XYZxyz(4.9779, 2.9161, 17.4366)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F76 #65761F
analogous
#1F3A76 #301F76 #5C1F76
triadic
#301F76 #76301F #1F7630
tetradic
#301F76 #761F3A #65761F #1F765C
square
#301F76 #761F3A #65761F #1F765C
split-complementary
#301F76 #765C1F #3A761F
monochromatic
#0A0618 #1C1246 #301F76 #442CA6 #5D42CD

Accessibility & contrast

On white

13.26
#301F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#301F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F76
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F76#FFFFFF#000000##FFFFFF
##301F761.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#0C3648
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #301f76;
/* rgb */ color: rgb(48, 31, 118);
/* oklch */ color: oklch(32.2% 0.140 284.3);
Tailwind
colors: {
  custom: {
    50: '#715c9e',
    500: '#301f76',
    950: '#000000',
  },
}
SCSS
$custom: #301f76;
$custom-light: #715c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#301f76",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 251.724,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32225,
    "c": 0.13977,
    "h": 284.3
  },
  "luminance": 0.02916
}

Semantic roles & 50–950 ramp

primary
#301F76
secondary
#96AA47
accent
#E246C3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301F76

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

Preview Lab → · Contrast checker → · Palette generator →

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