#30189E#30189E

#30189E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.7% C 0.195 H 278.0°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#30189E
RGBrgb(48, 24, 158)
HSLhsl(251, 74%, 36%)
HSVhsv(251, 85%, 62%)
CMYKcmyk(69.6%, 84.8%, 0%, 38%)
CIE-LABlab(22.83, 49.14, -66.94)
CIE-LCHlch(22.83, 83.04, 306.28°)
OKLaboklab(35.7% 0.0273 -0.1933)
OKLCHoklch(35.7% 0.195 278)
XYZxyz(7.7151, 3.7496, 32.6583)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30189E #869E18
analogous
#18439E #30189E #73189E
triadic
#30189E #9E3018 #189E30
tetradic
#30189E #9E1843 #869E18 #189E73
square
#30189E #9E1843 #869E18 #189E73
split-complementary
#30189E #9E7318 #439E18
monochromatic
#100834 #201069 #30189E #4020D3 #684DE4

Accessibility & contrast

On white

12.00
#30189E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#30189E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30189E
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30189E#FFFFFF#000000##FFFFFF
##30189E1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA2
Deuteranopia (green-blind)
#00319C
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #30189e;
/* rgb */ color: rgb(48, 24, 158);
/* oklch */ color: oklch(35.7% 0.195 278.0);
Tailwind
colors: {
  custom: {
    50: '#7a5bbc',
    500: '#30189e',
    950: '#000000',
  },
}
SCSS
$custom: #30189e;
$custom-light: #7a5bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#30189e",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 158
  },
  "hsl": {
    "h": 250.746,
    "s": 73.626,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35697,
    "c": 0.19525,
    "h": 278
  },
  "luminance": 0.0375
}

Semantic roles & 50–950 ramp

primary
#30189E
secondary
#B0C64C
accent
#F038CF
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #30189E

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

Preview Lab → · Contrast checker → · Palette generator →

#30189E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva