#302178#302178

#302178 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.7% C 0.140 H 283.4°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#302178
RGBrgb(48, 33, 120)
HSLhsl(250, 57%, 30%)
HSVhsv(250, 73%, 47%)
CMYKcmyk(60%, 72.5%, 0%, 52.9%)
CIE-LABlab(20.33, 32.63, -47.31)
CIE-LCHlch(20.33, 57.47, 304.60°)
OKLaboklab(32.73% 0.0324 -0.1362)
OKLCHoklch(32.73% 0.14 283.4)
XYZxyz(5.1519, 3.0718, 18.0871)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302178 #697821
analogous
#213D78 #302178 #5C2178
triadic
#302178 #783021 #217830
tetradic
#302178 #78213D #697821 #21785C
square
#302178 #78213D #697821 #21785C
split-complementary
#302178 #785C21 #3D7821
monochromatic
#0A0718 #1D1448 #302178 #432EA8 #5E47CC

Accessibility & contrast

On white

13.01
#302178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#302178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302178
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302178#FFFFFF#000000##FFFFFF
##3021781.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#002E76
Tritanopia (blue-blind)
#08384A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #302178;
/* rgb */ color: rgb(48, 33, 120);
/* oklch */ color: oklch(32.7% 0.140 283.4);
Tailwind
colors: {
  custom: {
    50: '#715ea0',
    500: '#302178',
    950: '#000000',
  },
}
SCSS
$custom: #302178;
$custom-light: #715ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#302178",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 250.345,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.3273,
    "c": 0.13998,
    "h": 283.4
  },
  "luminance": 0.03072
}

Semantic roles & 50–950 ramp

primary
#302178
secondary
#9AAB4A
accent
#E048C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #302178

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

Preview Lab → · Contrast checker → · Palette generator →

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