#30187E#30187E

#30187E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.157 H 283.9°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#30187E
RGBrgb(48, 24, 126)
HSLhsl(254, 68%, 29%)
HSVhsv(254, 81%, 49%)
CMYKcmyk(61.9%, 81%, 0%, 50.6%)
CIE-LABlab(19.17, 39.54, -53.03)
CIE-LCHlch(19.17, 66.15, 306.71°)
OKLaboklab(32.1% 0.0378 -0.1529)
OKLCHoklch(32.1% 0.157 283.9)
XYZxyz(5.3103, 2.7877, 19.9929)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30187E #667E18
analogous
#18337E #30187E #63187E
triadic
#30187E #7E3018 #187E30
tetradic
#30187E #7E1833 #667E18 #187E63
square
#30187E #7E1833 #667E18 #187E63
split-complementary
#30187E #7E6318 #337E18
monochromatic
#0A051A #1C0E4B #30187E #4422B1 #5D37D9

Accessibility & contrast

On white

13.48
#30187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#30187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30187E
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30187E#FFFFFF#000000##FFFFFF
##30187E1.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #30187e;
/* rgb */ color: rgb(48, 24, 126);
/* oklch */ color: oklch(32.1% 0.157 283.9);
Tailwind
colors: {
  custom: {
    50: '#7359a4',
    500: '#30187e',
    950: '#000000',
  },
}
SCSS
$custom: #30187e;
$custom-light: #7359a4;
$custom-dark: #000000;
JSON
{
  "hex": "#30187e",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 254.118,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32099,
    "c": 0.15748,
    "h": 283.9
  },
  "luminance": 0.02788
}

Semantic roles & 50–950 ramp

primary
#30187E
secondary
#97B23F
accent
#EB3DC2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #30187E

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

Preview Lab → · Contrast checker → · Palette generator →

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