#302170#302170

#302170 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.0% C 0.129 H 285.1°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#302170
RGBrgb(48, 33, 112)
HSLhsl(251, 54%, 28%)
HSVhsv(251, 71%, 44%)
CMYKcmyk(57.1%, 70.5%, 0%, 56.1%)
CIE-LABlab(19.58, 29.98, -43.39)
CIE-LCHlch(19.58, 52.74, 304.65°)
OKLaboklab(31.96% 0.0338 -0.1247)
OKLCHoklch(31.96% 0.129 285.1)
XYZxyz(4.6865, 2.8857, 15.6361)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302170 #617021
analogous
#213970 #302170 #572170
triadic
#302170 #703021 #217030
tetradic
#302170 #702139 #617021 #217057
square
#302170 #702139 #617021 #217057
split-complementary
#302170 #705721 #397021
monochromatic
#0A0718 #1C1341 #302170 #442F9F #5D44C8

Accessibility & contrast

On white

13.31
#302170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302170
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302170#FFFFFF#000000##FFFFFF
##3021701.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003272
Deuteranopia (green-blind)
#002D6E
Tritanopia (blue-blind)
#143545
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #302170;
/* rgb */ color: rgb(48, 33, 112);
/* oklch */ color: oklch(32.0% 0.129 285.1);
Tailwind
colors: {
  custom: {
    50: '#705d9a',
    500: '#302170',
    950: '#000000',
  },
}
SCSS
$custom: #302170;
$custom-light: #705d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#302170",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 251.392,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31962,
    "c": 0.12919,
    "h": 285.1
  },
  "luminance": 0.02886
}

Semantic roles & 50–950 ramp

primary
#302170
secondary
#92A449
accent
#DE4AC2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #302170

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

Preview Lab → · Contrast checker → · Palette generator →

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