#301F74#301F74

#301F74 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.0% C 0.137 H 284.8°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#301F74
RGBrgb(48, 31, 116)
HSLhsl(252, 58%, 29%)
HSVhsv(252, 73%, 45%)
CMYKcmyk(58.6%, 73.3%, 0%, 54.5%)
CIE-LABlab(19.51, 32.52, -46.08)
CIE-LCHlch(19.51, 56.40, 305.21°)
OKLaboklab(32.03% 0.035 -0.1326)
OKLCHoklch(32.03% 0.137 284.8)
XYZxyz(4.8603, 2.8690, 16.8173)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F74 #63741F
analogous
#1F3974 #301F74 #5B1F74
triadic
#301F74 #74301F #1F7430
tetradic
#301F74 #741F39 #63741F #1F745B
square
#301F74 #741F39 #63741F #1F745B
split-complementary
#301F74 #745B1F #39741F
monochromatic
#0A0618 #1C1244 #301F74 #442CA4 #5D41CC

Accessibility & contrast

On white

13.34
#301F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#301F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F74
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F74#FFFFFF#000000##FFFFFF
##301F741.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#002D72
Tritanopia (blue-blind)
#0F3547
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #301f74;
/* rgb */ color: rgb(48, 31, 116);
/* oklch */ color: oklch(32.0% 0.137 284.8);
Tailwind
colors: {
  custom: {
    50: '#715c9d',
    500: '#301f74',
    950: '#000000',
  },
}
SCSS
$custom: #301f74;
$custom-light: #715c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#301f74",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 116
  },
  "hsl": {
    "h": 252,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32028,
    "c": 0.13712,
    "h": 284.8
  },
  "luminance": 0.02869
}

Semantic roles & 50–950 ramp

primary
#301F74
secondary
#94A847
accent
#E147C2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301F74

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

Preview Lab → · Contrast checker → · Palette generator →

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