#30187A#30187A

#30187A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.153 H 284.8°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#30187A
RGBrgb(48, 24, 122)
HSLhsl(255, 67%, 29%)
HSVhsv(255, 80%, 48%)
CMYKcmyk(60.7%, 80.3%, 0%, 52.2%)
CIE-LABlab(18.74, 38.31, -51.19)
CIE-LCHlch(18.74, 63.94, 306.81°)
OKLaboklab(31.67% 0.0391 -0.1475)
OKLCHoklch(31.67% 0.153 284.8)
XYZxyz(5.0573, 2.6865, 18.6606)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30187A #627A18
analogous
#18317A #30187A #61187A
triadic
#30187A #7A3018 #187A30
tetradic
#30187A #7A1831 #627A18 #187A61
square
#30187A #7A1831 #627A18 #187A61
split-complementary
#30187A #7A6118 #317A18
monochromatic
#0A051A #1C0E47 #30187A #4422AD #5D35D7

Accessibility & contrast

On white

13.66
#30187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30187A
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30187A#FFFFFF#000000##FFFFFF
##30187A1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#053448
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #30187a;
/* rgb */ color: rgb(48, 24, 122);
/* oklch */ color: oklch(31.7% 0.153 284.8);
Tailwind
colors: {
  custom: {
    50: '#7258a1',
    500: '#30187a',
    950: '#000000',
  },
}
SCSS
$custom: #30187a;
$custom-light: #7258a1;
$custom-dark: #000000;
JSON
{
  "hex": "#30187a",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 254.694,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31669,
    "c": 0.15259,
    "h": 284.8
  },
  "luminance": 0.02687
}

Semantic roles & 50–950 ramp

primary
#30187A
secondary
#93AF3F
accent
#EA3EC0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #30187A

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

Preview Lab → · Contrast checker → · Palette generator →

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