#30188A#30188A

#30188A is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.172 H 281.4°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#30188A
RGBrgb(48, 24, 138)
HSLhsl(253, 70%, 32%)
HSVhsv(253, 83%, 54%)
CMYKcmyk(65.2%, 82.6%, 0%, 45.9%)
CIE-LABlab(20.50, 43.19, -58.41)
CIE-LCHlch(20.50, 72.64, 306.48°)
OKLaboklab(33.42% 0.034 -0.1685)
OKLCHoklch(33.42% 0.172 281.4)
XYZxyz(6.1316, 3.1162, 24.3182)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30188A #728A18
analogous
#18398A #30188A #69188A
triadic
#30188A #8A3018 #188A30
tetradic
#30188A #8A1839 #728A18 #188A69
square
#30188A #8A1839 #728A18 #188A69
split-complementary
#30188A #8A6918 #398A18
monochromatic
#0C0622 #1E0F56 #30188A #4221BE #603FDE

Accessibility & contrast

On white

12.94
#30188A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#30188A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30188A
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30188A#FFFFFF#000000##FFFFFF
##30188A1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358D
Deuteranopia (green-blind)
#002D88
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #30188a;
/* rgb */ color: rgb(48, 24, 138);
/* oklch */ color: oklch(33.4% 0.172 281.4);
Tailwind
colors: {
  custom: {
    50: '#7659ad',
    500: '#30188a',
    950: '#000000',
  },
}
SCSS
$custom: #30188a;
$custom-light: #7659ad;
$custom-dark: #000000;
JSON
{
  "hex": "#30188a",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 138
  },
  "hsl": {
    "h": 252.632,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33418,
    "c": 0.17193,
    "h": 281.4
  },
  "luminance": 0.03117
}

Semantic roles & 50–950 ramp

primary
#30188A
secondary
#A3BD40
accent
#ED3BC8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #30188A

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

Preview Lab → · Contrast checker → · Palette generator →

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