#301F7D#301F7D

#301F7D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.9% C 0.149 H 282.8°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#301F7D
RGBrgb(48, 31, 125)
HSLhsl(251, 60%, 31%)
HSVhsv(251, 75%, 49%)
CMYKcmyk(61.6%, 75.2%, 0%, 51%)
CIE-LABlab(20.40, 35.45, -50.38)
CIE-LCHlch(20.40, 61.61, 305.13°)
OKLaboklab(32.93% 0.033 -0.1452)
OKLCHoklch(32.93% 0.149 282.8)
XYZxyz(5.4094, 3.0887, 19.7092)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F7D #6C7D1F
analogous
#1F3D7D #301F7D #5F1F7D
triadic
#301F7D #7D301F #1F7D30
tetradic
#301F7D #7D1F3D #6C7D1F #1F7D5F
square
#301F7D #7D1F3D #6C7D1F #1F7D5F
split-complementary
#301F7D #7D5F1F #3D7D1F
monochromatic
#0A071B #1D134C #301F7D #432BAE #5F45D1

Accessibility & contrast

On white

12.98
#301F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#301F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F7D
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F7D#FFFFFF#000000##FFFFFF
##301F7D1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #301f7d;
/* rgb */ color: rgb(48, 31, 125);
/* oklch */ color: oklch(32.9% 0.149 282.8);
Tailwind
colors: {
  custom: {
    50: '#725da4',
    500: '#301f7d',
    950: '#000000',
  },
}
SCSS
$custom: #301f7d;
$custom-light: #725da4;
$custom-dark: #000000;
JSON
{
  "hex": "#301f7d",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 250.851,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32927,
    "c": 0.14889,
    "h": 282.8
  },
  "luminance": 0.03089
}

Semantic roles & 50–950 ramp

primary
#301F7D
secondary
#9DB048
accent
#E344C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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