#301F7E#301F7E

#301F7E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.150 H 282.6°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#301F7E
RGBrgb(48, 31, 126)
HSLhsl(251, 61%, 31%)
HSVhsv(251, 75%, 49%)
CMYKcmyk(61.9%, 75.4%, 0%, 50.6%)
CIE-LABlab(20.50, 35.77, -50.85)
CIE-LCHlch(20.50, 62.18, 305.13°)
OKLaboklab(33.03% 0.0328 -0.1466)
OKLCHoklch(33.03% 0.15 282.6)
XYZxyz(5.4736, 3.1143, 20.0473)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F7E #6D7E1F
analogous
#1F3D7E #301F7E #5F1F7E
triadic
#301F7E #7E301F #1F7E30
tetradic
#301F7E #7E1F3D #6D7E1F #1F7E5F
square
#301F7E #7E1F3D #6D7E1F #1F7E5F
split-complementary
#301F7E #7E5F1F #3D7E1F
monochromatic
#0B071C #1D134D #301F7E #432BAF #5F46D1

Accessibility & contrast

On white

12.94
#301F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301F7E
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F7E#FFFFFF#000000##FFFFFF
##301F7E1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301f7e;
/* rgb */ color: rgb(48, 31, 126);
/* oklch */ color: oklch(33.0% 0.150 282.6);
Tailwind
colors: {
  custom: {
    50: '#735da4',
    500: '#301f7e',
    950: '#000000',
  },
}
SCSS
$custom: #301f7e;
$custom-light: #735da4;
$custom-dark: #000000;
JSON
{
  "hex": "#301f7e",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 250.737,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33029,
    "c": 0.15019,
    "h": 282.6
  },
  "luminance": 0.03115
}

Semantic roles & 50–950 ramp

primary
#301F7E
secondary
#9EB148
accent
#E444C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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