#302175#302175

#302175 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.4% C 0.136 H 284.0°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#302175
RGBrgb(48, 33, 117)
HSLhsl(251, 56%, 29%)
HSVhsv(251, 72%, 46%)
CMYKcmyk(59%, 71.8%, 0%, 54.1%)
CIE-LABlab(20.04, 31.64, -45.85)
CIE-LCHlch(20.04, 55.71, 304.61°)
OKLaboklab(32.44% 0.0329 -0.1319)
OKLCHoklch(32.44% 0.136 284)
XYZxyz(4.9727, 3.0001, 17.1432)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302175 #667521
analogous
#213C75 #302175 #5A2175
triadic
#302175 #753021 #217530
tetradic
#302175 #75213C #667521 #21755A
square
#302175 #75213C #667521 #21755A
split-complementary
#302175 #755A21 #3C7521
monochromatic
#0A0718 #1C1445 #302175 #442EA5 #5D46CB

Accessibility & contrast

On white

13.13
#302175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302175
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302175#FFFFFF#000000##FFFFFF
##3021751.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003378
Deuteranopia (green-blind)
#002E73
Tritanopia (blue-blind)
#0D3748
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #302175;
/* rgb */ color: rgb(48, 33, 117);
/* oklch */ color: oklch(32.4% 0.136 284.0);
Tailwind
colors: {
  custom: {
    50: '#715e9e',
    500: '#302175',
    950: '#000000',
  },
}
SCSS
$custom: #302175;
$custom-light: #715e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#302175",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 117
  },
  "hsl": {
    "h": 250.714,
    "s": 56,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32439,
    "c": 0.13596,
    "h": 284
  },
  "luminance": 0.03
}

Semantic roles & 50–950 ramp

primary
#302175
secondary
#97A84A
accent
#DF49C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #302175

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

Preview Lab → · Contrast checker → · Palette generator →

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