#30187D#30187D

#30187D is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.156 H 284.1°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#30187D
RGBrgb(48, 24, 125)
HSLhsl(254, 68%, 29%)
HSVhsv(254, 81%, 49%)
CMYKcmyk(61.6%, 80.8%, 0%, 51%)
CIE-LABlab(19.06, 39.23, -52.58)
CIE-LCHlch(19.06, 65.60, 306.73°)
OKLaboklab(31.99% 0.0382 -0.1515)
OKLCHoklch(31.99% 0.156 284.1)
XYZxyz(5.2461, 2.7620, 19.6547)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30187D #657D18
analogous
#18337D #30187D #63187D
triadic
#30187D #7D3018 #187D30
tetradic
#30187D #7D1833 #657D18 #187D63
square
#30187D #7D1833 #657D18 #187D63
split-complementary
#30187D #7D6318 #337D18
monochromatic
#0A051A #1C0E4A #30187D #4422B0 #5D37D9

Accessibility & contrast

On white

13.53
#30187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#30187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30187D
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30187D#FFFFFF#000000##FFFFFF
##30187D1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003180
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #30187d;
/* rgb */ color: rgb(48, 24, 125);
/* oklch */ color: oklch(32.0% 0.156 284.1);
Tailwind
colors: {
  custom: {
    50: '#7359a4',
    500: '#30187d',
    950: '#000000',
  },
}
SCSS
$custom: #30187d;
$custom-light: #7359a4;
$custom-dark: #000000;
JSON
{
  "hex": "#30187d",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 254.257,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31991,
    "c": 0.15627,
    "h": 284.1
  },
  "luminance": 0.02762
}

Semantic roles & 50–950 ramp

primary
#30187D
secondary
#96B23F
accent
#EB3DC1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #30187D

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

Preview Lab → · Contrast checker → · Palette generator →

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