#302159#302159

#302159 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.9% C 0.097 H 291.9°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#302159
RGBrgb(48, 33, 89)
HSLhsl(256, 46%, 24%)
HSVhsv(256, 63%, 35%)
CMYKcmyk(46.1%, 62.9%, 0%, 65.1%)
CIE-LABlab(17.63, 22.41, -31.43)
CIE-LCHlch(17.63, 38.60, 305.49°)
OKLaboklab(29.94% 0.0359 -0.0896)
OKLCHoklch(29.94% 0.097 291.9)
XYZxyz(3.5655, 2.4373, 9.7318)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302159 #4A5921
analogous
#212E59 #302159 #4C2159
triadic
#302159 #593021 #215930
tetradic
#302159 #59212E #4A5921 #21594C
square
#302159 #59212E #4A5921 #21594C
split-complementary
#302159 #594C21 #2E5921
monochromatic
#0C0816 #18102C #302159 #483286 #6042B2

Accessibility & contrast

On white

14.12
#302159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#302159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302159
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302159#FFFFFF#000000##FFFFFF
##3021591.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5B
Deuteranopia (green-blind)
#042A58
Tritanopia (blue-blind)
#252D39
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #302159;
/* rgb */ color: rgb(48, 33, 89);
/* oklch */ color: oklch(29.9% 0.097 291.9);
Tailwind
colors: {
  custom: {
    50: '#6c5d88',
    500: '#302159',
    950: '#000000',
  },
}
SCSS
$custom: #302159;
$custom-light: #6c5d88;
$custom-dark: #000000;
JSON
{
  "hex": "#302159",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 89
  },
  "hsl": {
    "h": 256.071,
    "s": 45.902,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29935,
    "c": 0.0965,
    "h": 291.9
  },
  "luminance": 0.02437
}

Semantic roles & 50–950 ramp

primary
#302159
secondary
#7B8D49
accent
#D652B2
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040B
muted
#7A797C

Preview Lab

Preview with #302159

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

Preview Lab → · Contrast checker → · Palette generator →

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