#301F54#301F54

#301F54 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.2% C 0.092 H 294.8°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#301F54
RGBrgb(48, 31, 84)
HSLhsl(259, 46%, 23%)
HSVhsv(259, 63%, 33%)
CMYKcmyk(42.9%, 63.1%, 0%, 67.1%)
CIE-LABlab(16.74, 22.14, -29.51)
CIE-LCHlch(16.74, 36.89, 306.87°)
OKLaboklab(29.16% 0.0388 -0.0839)
OKLCHoklch(29.16% 0.092 294.8)
XYZxyz(3.3087, 2.2484, 8.6454)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F54 #43541F
analogous
#1F2954 #301F54 #4A1F54
triadic
#301F54 #54301F #1F5430
tetradic
#301F54 #541F29 #43541F #1F544A
square
#301F54 #541F29 #43541F #1F544A
split-complementary
#301F54 #544A1F #29541F
monochromatic
#0D0816 #160F27 #301F54 #4A2F81 #6340AD

Accessibility & contrast

On white

14.49
#301F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#301F54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F54
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F54#FFFFFF#000000##FFFFFF
##301F541.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032A56
Deuteranopia (green-blind)
#082953
Tritanopia (blue-blind)
#272A36
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #301f54;
/* rgb */ color: rgb(48, 31, 84);
/* oklch */ color: oklch(29.2% 0.092 294.8);
Tailwind
colors: {
  custom: {
    50: '#6b5b84',
    500: '#301f54',
    950: '#000000',
  },
}
SCSS
$custom: #301f54;
$custom-light: #6b5b84;
$custom-dark: #000000;
JSON
{
  "hex": "#301f54",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 84
  },
  "hsl": {
    "h": 259.245,
    "s": 46.087,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29157,
    "c": 0.09243,
    "h": 294.8
  },
  "luminance": 0.02248
}

Semantic roles & 50–950 ramp

primary
#301F54
secondary
#738946
accent
#D652AC
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #301F54

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

Preview Lab → · Contrast checker → · Palette generator →

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