#301951#301951

#301951 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.098 H 298.7°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#301951
RGBrgb(48, 25, 81)
HSLhsl(265, 53%, 21%)
HSVhsv(265, 69%, 32%)
CMYKcmyk(40.7%, 69.1%, 0%, 68.2%)
CIE-LABlab(15.05, 25.08, -30.21)
CIE-LCHlch(15.05, 39.26, 309.70°)
OKLaboklab(27.85% 0.0472 -0.0859)
OKLCHoklch(27.85% 0.098 298.7)
XYZxyz(3.0514, 1.9177, 7.9924)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301951 #3A5119
analogous
#191E51 #301951 #4C1951
triadic
#301951 #513019 #195130
tetradic
#301951 #51191E #3A5119 #19514C
square
#301951 #51191E #3A5119 #19514C
split-complementary
#301951 #514C19 #1E5119
monochromatic
#0E0717 #140B22 #301951 #4C2780 #6736AF

Accessibility & contrast

On white

15.18
#301951 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#301951 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301951
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301951#FFFFFF#000000##FFFFFF
##3019511.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002653
Deuteranopia (green-blind)
#022550
Tritanopia (blue-blind)
#282532
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #301951;
/* rgb */ color: rgb(48, 25, 81);
/* oklch */ color: oklch(27.8% 0.098 298.7);
Tailwind
colors: {
  custom: {
    50: '#6b5782',
    500: '#301951',
    950: '#000000',
  },
}
SCSS
$custom: #301951;
$custom-light: #6b5782;
$custom-dark: #000000;
JSON
{
  "hex": "#301951",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 81
  },
  "hsl": {
    "h": 264.643,
    "s": 52.83,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27849,
    "c": 0.09803,
    "h": 298.7
  },
  "luminance": 0.01918
}

Semantic roles & 50–950 ramp

primary
#301951
secondary
#69873E
accent
#DC4CA1
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #301951

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

Preview Lab → · Contrast checker → · Palette generator →

#301951 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva