#301642#301642

#301642 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.1% C 0.083 H 309.1°. Best body text is #FFFFFF at 15.92:1 contrast (WCAG AA passes).

Color values

HEX#301642
RGBrgb(48, 22, 66)
HSLhsl(275, 50%, 17%)
HSVhsv(275, 67%, 26%)
CMYKcmyk(27.3%, 66.7%, 0%, 74.1%)
CIE-LABlab(13.20, 22.60, -22.81)
CIE-LCHlch(13.20, 32.11, 314.74°)
OKLaboklab(26.14% 0.0521 -0.0642)
OKLCHoklch(26.14% 0.083 309.1)
XYZxyz(2.4890, 1.5956, 5.3301)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301642 #284216
analogous
#1A1642 #301642 #42163E
triadic
#301642 #423016 #164230
tetradic
#301642 #421A16 #284216 #163E42
square
#301642 #421A16 #284216 #163E42
split-complementary
#301642 #3E4216 #16421A
monochromatic
#110817 #110817 #301642 #512570 #73359E

Accessibility & contrast

On white

15.92
#301642 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#301642 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301642
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301642#FFFFFF#000000##FFFFFF
##3016421.0015.921.3215.92
#FFFFFF15.921.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062143
Deuteranopia (green-blind)
#102241
Tritanopia (blue-blind)
#2D1E29
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #301642;
/* rgb */ color: rgb(48, 22, 66);
/* oklch */ color: oklch(26.1% 0.083 309.1);
Tailwind
colors: {
  custom: {
    50: '#6a5477',
    500: '#301642',
    950: '#000000',
  },
}
SCSS
$custom: #301642;
$custom-light: #6a5477;
$custom-dark: #000000;
JSON
{
  "hex": "#301642",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 66
  },
  "hsl": {
    "h": 275.455,
    "s": 50,
    "l": 17.255
  },
  "oklch": {
    "l": 0.2614,
    "c": 0.0827,
    "h": 309.1
  },
  "luminance": 0.01596
}

Semantic roles & 50–950 ramp

primary
#301642
secondary
#54793A
accent
#DA4E87
background
#F6F4F7
surface
#EBE8ED
border
#C6C4C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #301642

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

Preview Lab → · Contrast checker → · Palette generator →

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