#30188B#30188B

#30188B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.173 H 281.2°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#30188B
RGBrgb(48, 24, 139)
HSLhsl(253, 71%, 32%)
HSVhsv(253, 83%, 55%)
CMYKcmyk(65.5%, 82.7%, 0%, 45.5%)
CIE-LABlab(20.62, 43.49, -58.85)
CIE-LCHlch(20.62, 73.17, 306.47°)
OKLaboklab(33.53% 0.0336 -0.1698)
OKLCHoklch(33.53% 0.173 281.2)
XYZxyz(6.2043, 3.1453, 24.7012)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30188B #738B18
analogous
#18398B #30188B #6A188B
triadic
#30188B #8B3018 #188B30
tetradic
#30188B #8B1839 #738B18 #188B6A
square
#30188B #8B1839 #738B18 #188B6A
split-complementary
#30188B #8B6A18 #398B18
monochromatic
#0C0623 #1E0F57 #30188B #4221BF #613FDE

Accessibility & contrast

On white

12.89
#30188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#30188B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30188B
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30188B#FFFFFF#000000##FFFFFF
##30188B1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #30188b;
/* rgb */ color: rgb(48, 24, 139);
/* oklch */ color: oklch(33.5% 0.173 281.2);
Tailwind
colors: {
  custom: {
    50: '#765aae',
    500: '#30188b',
    950: '#000000',
  },
}
SCSS
$custom: #30188b;
$custom-light: #765aae;
$custom-dark: #000000;
JSON
{
  "hex": "#30188b",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 252.522,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3353,
    "c": 0.17312,
    "h": 281.2
  },
  "luminance": 0.03146
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #30188B

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

Preview Lab → · Contrast checker → · Palette generator →

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