#301F80#301F80

#301F80 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.2% C 0.153 H 282.2°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#301F80
RGBrgb(48, 31, 128)
HSLhsl(251, 61%, 31%)
HSVhsv(251, 76%, 50%)
CMYKcmyk(62.5%, 75.8%, 0%, 49.8%)
CIE-LABlab(20.70, 36.42, -51.79)
CIE-LCHlch(20.70, 63.31, 305.12°)
OKLaboklab(33.23% 0.0323 -0.1493)
OKLCHoklch(33.23% 0.153 282.2)
XYZxyz(5.6040, 3.1665, 20.7338)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F80 #6F801F
analogous
#1F3E80 #301F80 #601F80
triadic
#301F80 #80301F #1F8030
tetradic
#301F80 #801F3E #6F801F #1F8060
square
#301F80 #801F3E #6F801F #1F8060
split-complementary
#301F80 #80601F #3E801F
monochromatic
#0B071D #1E134F #301F80 #422BB1 #5F47D2

Accessibility & contrast

On white

12.86
#301F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301F80
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F80#FFFFFF#000000##FFFFFF
##301F801.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#002E7E
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #301f80;
/* rgb */ color: rgb(48, 31, 128);
/* oklch */ color: oklch(33.2% 0.153 282.2);
Tailwind
colors: {
  custom: {
    50: '#735da6',
    500: '#301f80',
    950: '#000000',
  },
}
SCSS
$custom: #301f80;
$custom-light: #735da6;
$custom-dark: #000000;
JSON
{
  "hex": "#301f80",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 128
  },
  "hsl": {
    "h": 250.515,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33234,
    "c": 0.15275,
    "h": 282.2
  },
  "luminance": 0.03167
}

Semantic roles & 50–950 ramp

primary
#301F80
secondary
#A0B348
accent
#E444C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301F80

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

Preview Lab → · Contrast checker → · Palette generator →

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