#30188E#30188E

#30188E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.9% C 0.177 H 280.6°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#30188E
RGBrgb(48, 24, 142)
HSLhsl(252, 71%, 33%)
HSVhsv(252, 83%, 56%)
CMYKcmyk(66.2%, 83.1%, 0%, 44.3%)
CIE-LABlab(20.96, 44.39, -60.15)
CIE-LCHlch(20.96, 74.76, 306.43°)
OKLaboklab(33.87% 0.0326 -0.1736)
OKLCHoklch(33.87% 0.177 280.6)
XYZxyz(6.4265, 3.2341, 25.8715)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30188E #768E18
analogous
#183B8E #30188E #6B188E
triadic
#30188E #8E3018 #188E30
tetradic
#30188E #8E183B #768E18 #188E6B
square
#30188E #8E183B #768E18 #188E6B
split-complementary
#30188E #8E6B18 #3B8E18
monochromatic
#0D0625 #1E0F5A #30188E #4221C2 #6141DF

Accessibility & contrast

On white

12.75
#30188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#30188E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30188E
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30188E#FFFFFF#000000##FFFFFF
##30188E1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003691
Deuteranopia (green-blind)
#002E8C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #30188e;
/* rgb */ color: rgb(48, 24, 142);
/* oklch */ color: oklch(33.9% 0.177 280.6);
Tailwind
colors: {
  custom: {
    50: '#775ab0',
    500: '#30188e',
    950: '#000000',
  },
}
SCSS
$custom: #30188e;
$custom-light: #775ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#30188e",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 252.203,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33866,
    "c": 0.17666,
    "h": 280.6
  },
  "luminance": 0.03235
}

Semantic roles & 50–950 ramp

primary
#30188E
secondary
#A6C042
accent
#EE3AC9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #30188E

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

Preview Lab → · Contrast checker → · Palette generator →

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