#301F6F#301F6F

#301F6F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.5% C 0.130 H 286.0°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#301F6F
RGBrgb(48, 31, 111)
HSLhsl(253, 56%, 28%)
HSVhsv(253, 72%, 44%)
CMYKcmyk(56.8%, 72.1%, 0%, 56.5%)
CIE-LABlab(19.04, 30.89, -43.63)
CIE-LCHlch(19.04, 53.45, 305.30°)
OKLaboklab(31.54% 0.0359 -0.1254)
OKLCHoklch(31.54% 0.13 286)
XYZxyz(4.5773, 2.7558, 15.3266)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F6F #5E6F1F
analogous
#1F366F #301F6F #581F6F
triadic
#301F6F #6F301F #1F6F30
tetradic
#301F6F #6F1F36 #5E6F1F #1F6F58
square
#301F6F #6F1F36 #5E6F1F #1F6F58
split-complementary
#301F6F #6F581F #366F1F
monochromatic
#0A0718 #1B123F #301F6F #452C9F #5C3FC9

Accessibility & contrast

On white

13.54
#301F6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#301F6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F6F
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F6F#FFFFFF#000000##FFFFFF
##301F6F1.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#153444
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #301f6f;
/* rgb */ color: rgb(48, 31, 111);
/* oklch */ color: oklch(31.5% 0.130 286.0);
Tailwind
colors: {
  custom: {
    50: '#705c99',
    500: '#301f6f',
    950: '#000000',
  },
}
SCSS
$custom: #301f6f;
$custom-light: #705c99;
$custom-dark: #000000;
JSON
{
  "hex": "#301f6f",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 111
  },
  "hsl": {
    "h": 252.75,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31544,
    "c": 0.13044,
    "h": 286
  },
  "luminance": 0.02756
}

Semantic roles & 50–950 ramp

primary
#301F6F
secondary
#8FA347
accent
#E048BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301F6F

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

Preview Lab → · Contrast checker → · Palette generator →

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