#302171#302171

#302171 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.1% C 0.131 H 284.9°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#302171
RGBrgb(48, 33, 113)
HSLhsl(251, 55%, 29%)
HSVhsv(251, 71%, 44%)
CMYKcmyk(57.5%, 70.8%, 0%, 55.7%)
CIE-LABlab(19.67, 30.32, -43.88)
CIE-LCHlch(19.67, 53.34, 304.64°)
OKLaboklab(32.06% 0.0336 -0.1262)
OKLCHoklch(32.06% 0.131 284.9)
XYZxyz(4.7425, 2.9081, 15.9310)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302171 #627121
analogous
#213A71 #302171 #582171
triadic
#302171 #713021 #217130
tetradic
#302171 #71213A #627121 #217158
square
#302171 #71213A #627121 #217158
split-complementary
#302171 #715821 #3A7121
monochromatic
#0A0718 #1C1342 #302171 #442FA0 #5D44C8

Accessibility & contrast

On white

13.28
#302171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#302171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302171
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302171#FFFFFF#000000##FFFFFF
##3021711.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#133546
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #302171;
/* rgb */ color: rgb(48, 33, 113);
/* oklch */ color: oklch(32.1% 0.131 284.9);
Tailwind
colors: {
  custom: {
    50: '#705d9b',
    500: '#302171',
    950: '#000000',
  },
}
SCSS
$custom: #302171;
$custom-light: #705d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#302171",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 113
  },
  "hsl": {
    "h": 251.25,
    "s": 54.795,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32056,
    "c": 0.13055,
    "h": 284.9
  },
  "luminance": 0.02908
}

Semantic roles & 50–950 ramp

primary
#302171
secondary
#93A549
accent
#DE4AC2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #302171

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

Preview Lab → · Contrast checker → · Palette generator →

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