#301F7F#301F7F

#301F7F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.151 H 282.4°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#301F7F
RGBrgb(48, 31, 127)
HSLhsl(251, 61%, 31%)
HSVhsv(251, 76%, 50%)
CMYKcmyk(62.2%, 75.6%, 0%, 50.2%)
CIE-LABlab(20.60, 36.10, -51.32)
CIE-LCHlch(20.60, 62.75, 305.12°)
OKLaboklab(33.13% 0.0325 -0.1479)
OKLCHoklch(33.13% 0.151 282.4)
XYZxyz(5.5385, 3.1403, 20.3888)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F7F #6E7F1F
analogous
#1F3E7F #301F7F #601F7F
triadic
#301F7F #7F301F #1F7F30
tetradic
#301F7F #7F1F3E #6E7F1F #1F7F60
square
#301F7F #7F1F3E #6E7F1F #1F7F60
split-complementary
#301F7F #7F601F #3E7F1F
monochromatic
#0B071D #1D134E #301F7F #432BB0 #5F46D2

Accessibility & contrast

On white

12.90
#301F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#301F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F7F
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F7F#FFFFFF#000000##FFFFFF
##301F7F1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #301f7f;
/* rgb */ color: rgb(48, 31, 127);
/* oklch */ color: oklch(33.1% 0.151 282.4);
Tailwind
colors: {
  custom: {
    50: '#735da5',
    500: '#301f7f',
    950: '#000000',
  },
}
SCSS
$custom: #301f7f;
$custom-light: #735da5;
$custom-dark: #000000;
JSON
{
  "hex": "#301f7f",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 250.625,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33131,
    "c": 0.15147,
    "h": 282.4
  },
  "luminance": 0.03141
}

Semantic roles & 50–950 ramp

primary
#301F7F
secondary
#9FB248
accent
#E444C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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