#301652#301652

#301652 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.104 H 299.3°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#301652
RGBrgb(48, 22, 82)
HSLhsl(266, 58%, 20%)
HSVhsv(266, 73%, 32%)
CMYKcmyk(41.5%, 73.2%, 0%, 67.8%)
CIE-LABlab(14.46, 27.20, -31.83)
CIE-LCHlch(14.46, 41.87, 310.51°)
OKLaboklab(27.45% 0.0509 -0.0907)
OKLCHoklch(27.45% 0.104 299.3)
XYZxyz(3.0284, 1.8114, 8.1711)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301652 #385216
analogous
#161A52 #301652 #4E1652
triadic
#301652 #523016 #165230
tetradic
#301652 #52161A #385216 #16524E
square
#301652 #52161A #385216 #16524E
split-complementary
#301652 #524E16 #1A5216
monochromatic
#0E0618 #140922 #301652 #4C2382 #6830B3

Accessibility & contrast

On white

15.42
#301652 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#301652 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301652
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301652#FFFFFF#000000##FFFFFF
##3016521.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002454
Deuteranopia (green-blind)
#002451
Tritanopia (blue-blind)
#282432
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #301652;
/* rgb */ color: rgb(48, 22, 82);
/* oklch */ color: oklch(27.5% 0.104 299.3);
Tailwind
colors: {
  custom: {
    50: '#6c5583',
    500: '#301652',
    950: '#000000',
  },
}
SCSS
$custom: #301652;
$custom-light: #6c5583;
$custom-dark: #000000;
JSON
{
  "hex": "#301652",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 82
  },
  "hsl": {
    "h": 266,
    "s": 57.692,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27454,
    "c": 0.10403,
    "h": 299.3
  },
  "luminance": 0.01811
}

Semantic roles & 50–950 ramp

primary
#301652
secondary
#67893A
accent
#E1479E
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301652

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

Preview Lab → · Contrast checker → · Palette generator →

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