#30187C#30187C

#30187C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.155 H 284.4°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#30187C
RGBrgb(48, 24, 124)
HSLhsl(254, 68%, 29%)
HSVhsv(254, 81%, 49%)
CMYKcmyk(61.3%, 80.6%, 0%, 51.4%)
CIE-LABlab(18.96, 38.92, -52.12)
CIE-LCHlch(18.96, 65.05, 306.76°)
OKLaboklab(31.88% 0.0385 -0.1502)
OKLCHoklch(31.88% 0.155 284.4)
XYZxyz(5.1825, 2.7366, 19.3200)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30187C #647C18
analogous
#18327C #30187C #62187C
triadic
#30187C #7C3018 #187C30
tetradic
#30187C #7C1832 #647C18 #187C62
square
#30187C #7C1832 #647C18 #187C62
split-complementary
#30187C #7C6218 #327C18
monochromatic
#0A051A #1C0E49 #30187C #4422AF #5D36D8

Accessibility & contrast

On white

13.57
#30187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30187C
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30187C#FFFFFF#000000##FFFFFF
##30187C1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#01354A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #30187c;
/* rgb */ color: rgb(48, 24, 124);
/* oklch */ color: oklch(31.9% 0.155 284.4);
Tailwind
colors: {
  custom: {
    50: '#7359a3',
    500: '#30187c',
    950: '#000000',
  },
}
SCSS
$custom: #30187c;
$custom-light: #7359a3;
$custom-dark: #000000;
JSON
{
  "hex": "#30187c",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 254.4,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31883,
    "c": 0.15505,
    "h": 284.4
  },
  "luminance": 0.02737
}

Semantic roles & 50–950 ramp

primary
#30187C
secondary
#95B13F
accent
#EA3DC1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #30187C

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

Preview Lab → · Contrast checker → · Palette generator →

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