#302176#302176

#302176 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.5% C 0.137 H 283.8°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#302176
RGBrgb(48, 33, 118)
HSLhsl(251, 56%, 30%)
HSVhsv(251, 72%, 46%)
CMYKcmyk(59.3%, 72%, 0%, 53.7%)
CIE-LABlab(20.14, 31.97, -46.34)
CIE-LCHlch(20.14, 56.30, 304.61°)
OKLaboklab(32.53% 0.0327 -0.1333)
OKLCHoklch(32.53% 0.137 283.8)
XYZxyz(5.0318, 3.0238, 17.4545)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302176 #677621
analogous
#213D76 #302176 #5B2176
triadic
#302176 #763021 #217630
tetradic
#302176 #76213D #677621 #21765B
square
#302176 #76213D #677621 #21765B
split-complementary
#302176 #765B21 #3D7621
monochromatic
#0A0718 #1D1446 #302176 #432EA6 #5E46CB

Accessibility & contrast

On white

13.09
#302176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#302176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302176
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302176#FFFFFF#000000##FFFFFF
##3021761.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003379
Deuteranopia (green-blind)
#002E74
Tritanopia (blue-blind)
#0C3748
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #302176;
/* rgb */ color: rgb(48, 33, 118);
/* oklch */ color: oklch(32.5% 0.137 283.8);
Tailwind
colors: {
  custom: {
    50: '#715e9e',
    500: '#302176',
    950: '#000000',
  },
}
SCSS
$custom: #302176;
$custom-light: #715e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#302176",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 118
  },
  "hsl": {
    "h": 250.588,
    "s": 56.291,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32535,
    "c": 0.13731,
    "h": 283.8
  },
  "luminance": 0.03024
}

Semantic roles & 50–950 ramp

primary
#302176
secondary
#98A94A
accent
#E048C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #302176

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

Preview Lab → · Contrast checker → · Palette generator →

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