#30187B#30187B

#30187B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.154 H 284.6°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#30187B
RGBrgb(48, 24, 123)
HSLhsl(255, 67%, 29%)
HSVhsv(255, 80%, 48%)
CMYKcmyk(61%, 80.5%, 0%, 51.8%)
CIE-LABlab(18.85, 38.62, -51.66)
CIE-LCHlch(18.85, 64.50, 306.78°)
OKLaboklab(31.78% 0.0388 -0.1488)
OKLCHoklch(31.78% 0.154 284.6)
XYZxyz(5.1196, 2.7114, 18.9886)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30187B #637B18
analogous
#18327B #30187B #62187B
triadic
#30187B #7B3018 #187B30
tetradic
#30187B #7B1832 #637B18 #187B62
square
#30187B #7B1832 #637B18 #187B62
split-complementary
#30187B #7B6218 #327B18
monochromatic
#0A051A #1C0E48 #30187B #4422AE #5D36D8

Accessibility & contrast

On white

13.62
#30187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#30187B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30187B
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30187B#FFFFFF#000000##FFFFFF
##30187B1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#033549
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #30187b;
/* rgb */ color: rgb(48, 24, 123);
/* oklch */ color: oklch(31.8% 0.154 284.6);
Tailwind
colors: {
  custom: {
    50: '#7358a2',
    500: '#30187b',
    950: '#000000',
  },
}
SCSS
$custom: #30187b;
$custom-light: #7358a2;
$custom-dark: #000000;
JSON
{
  "hex": "#30187b",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 254.545,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31776,
    "c": 0.15382,
    "h": 284.6
  },
  "luminance": 0.02712
}

Semantic roles & 50–950 ramp

primary
#30187B
secondary
#94B03F
accent
#EA3EC0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #30187B

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

Preview Lab → · Contrast checker → · Palette generator →

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