#30188C#30188C

#30188C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.174 H 281.0°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#30188C
RGBrgb(48, 24, 140)
HSLhsl(252, 71%, 32%)
HSVhsv(252, 83%, 55%)
CMYKcmyk(65.7%, 82.9%, 0%, 45.1%)
CIE-LABlab(20.73, 43.79, -59.28)
CIE-LCHlch(20.73, 73.70, 306.45°)
OKLaboklab(33.64% 0.0333 -0.1711)
OKLCHoklch(33.64% 0.174 281)
XYZxyz(6.2777, 3.1746, 25.0878)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30188C #748C18
analogous
#183A8C #30188C #6A188C
triadic
#30188C #8C3018 #188C30
tetradic
#30188C #8C183A #748C18 #188C6A
square
#30188C #8C183A #748C18 #188C6A
split-complementary
#30188C #8C6A18 #3A8C18
monochromatic
#0C0624 #1E0F58 #30188C #4221C0 #6140DE

Accessibility & contrast

On white

12.84
#30188C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#30188C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30188C
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30188C#FFFFFF#000000##FFFFFF
##30188C1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #30188c;
/* rgb */ color: rgb(48, 24, 140);
/* oklch */ color: oklch(33.6% 0.174 281.0);
Tailwind
colors: {
  custom: {
    50: '#765aaf',
    500: '#30188c',
    950: '#000000',
  },
}
SCSS
$custom: #30188c;
$custom-light: #765aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#30188c",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 252.414,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33642,
    "c": 0.1743,
    "h": 281
  },
  "luminance": 0.03175
}

Semantic roles & 50–950 ramp

primary
#30188C
secondary
#A5BF41
accent
#ED3AC8
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #30188C

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

Preview Lab → · Contrast checker → · Palette generator →

#30188C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva