#301F59#301F59

#301F59 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.6% C 0.100 H 292.8°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#301F59
RGBrgb(48, 31, 89)
HSLhsl(258, 48%, 24%)
HSVhsv(258, 65%, 35%)
CMYKcmyk(46.1%, 65.2%, 0%, 65.1%)
CIE-LABlab(17.13, 23.73, -32.25)
CIE-LCHlch(17.13, 40.04, 306.35°)
OKLaboklab(29.57% 0.0386 -0.0919)
OKLCHoklch(29.57% 0.1 292.8)
XYZxyz(3.5116, 2.3295, 9.7139)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F59 #48591F
analogous
#1F2B59 #301F59 #4D1F59
triadic
#301F59 #59301F #1F5930
tetradic
#301F59 #591F2B #48591F #1F594D
square
#301F59 #591F2B #48591F #1F594D
split-complementary
#301F59 #594D1F #2B591F
monochromatic
#0C0817 #180F2C #301F59 #482F86 #613FB4

Accessibility & contrast

On white

14.32
#301F59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#301F59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F59
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F59#FFFFFF#000000##FFFFFF
##301F591.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5B
Deuteranopia (green-blind)
#002958
Tritanopia (blue-blind)
#252C38
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #301f59;
/* rgb */ color: rgb(48, 31, 89);
/* oklch */ color: oklch(29.6% 0.100 292.8);
Tailwind
colors: {
  custom: {
    50: '#6c5b88',
    500: '#301f59',
    950: '#000000',
  },
}
SCSS
$custom: #301f59;
$custom-light: #6c5b88;
$custom-dark: #000000;
JSON
{
  "hex": "#301f59",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 89
  },
  "hsl": {
    "h": 257.586,
    "s": 48.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29566,
    "c": 0.09973,
    "h": 292.8
  },
  "luminance": 0.0233
}

Semantic roles & 50–950 ramp

primary
#301F59
secondary
#798E46
accent
#D850B0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040B
muted
#7A797C

Preview Lab

Preview with #301F59

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

Preview Lab → · Contrast checker → · Palette generator →

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