#302152#302152

#302152 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.4% C 0.086 H 294.6°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#302152
RGBrgb(48, 33, 82)
HSLhsl(258, 43%, 23%)
HSVhsv(258, 60%, 32%)
CMYKcmyk(41.5%, 59.8%, 0%, 67.8%)
CIE-LABlab(17.11, 20.16, -27.57)
CIE-LCHlch(17.11, 34.16, 306.18°)
OKLaboklab(29.38% 0.0359 -0.0782)
OKLCHoklch(29.38% 0.086 294.6)
XYZxyz(3.2854, 2.3252, 8.2567)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302152 #435221
analogous
#212B52 #302152 #482152
triadic
#302152 #523021 #215230
tetradic
#302152 #52212B #435221 #215248
square
#302152 #52212B #435221 #215248
split-complementary
#302152 #524821 #2B5221
monochromatic
#0D0916 #160F26 #302152 #4A337E #6344A9

Accessibility & contrast

On white

14.33
#302152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#302152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302152
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302152#FFFFFF#000000##FFFFFF
##3021521.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2B54
Deuteranopia (green-blind)
#0F2951
Tritanopia (blue-blind)
#282B36
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #302152;
/* rgb */ color: rgb(48, 33, 82);
/* oklch */ color: oklch(29.4% 0.086 294.6);
Tailwind
colors: {
  custom: {
    50: '#6b5c83',
    500: '#302152',
    950: '#000000',
  },
}
SCSS
$custom: #302152;
$custom-light: #6b5c83;
$custom-dark: #000000;
JSON
{
  "hex": "#302152",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 258.367,
    "s": 42.609,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29381,
    "c": 0.08603,
    "h": 294.6
  },
  "luminance": 0.02325
}

Semantic roles & 50–950 ramp

primary
#302152
secondary
#738649
accent
#D255AC
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07040A
muted
#7A797C

Preview Lab

Preview with #302152

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

Preview Lab → · Contrast checker → · Palette generator →

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