#30186C#30186C

#30186C is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.135 H 288.6°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#30186C
RGBrgb(48, 24, 108)
HSLhsl(257, 64%, 26%)
HSVhsv(257, 78%, 42%)
CMYKcmyk(55.6%, 77.8%, 0%, 57.6%)
CIE-LABlab(17.29, 33.98, -44.54)
CIE-LCHlch(17.29, 56.02, 307.35°)
OKLaboklab(30.21% 0.0431 -0.128)
OKLCHoklch(30.21% 0.135 288.6)
XYZxyz(4.2515, 2.3642, 14.4168)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30186C #546C18
analogous
#182A6C #30186C #5A186C
triadic
#30186C #6C3018 #186C30
tetradic
#30186C #6C182A #546C18 #186C5A
square
#30186C #6C182A #546C18 #186C5A
split-complementary
#30186C #6C5A18 #2A6C18
monochromatic
#0B0619 #1A0D3A #30186C #46239E #5D2ED0

Accessibility & contrast

On white

14.26
#30186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#30186C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30186C
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30186C#FFFFFF#000000##FFFFFF
##30186C1.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6E
Deuteranopia (green-blind)
#00286A
Tritanopia (blue-blind)
#192F40
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #30186c;
/* rgb */ color: rgb(48, 24, 108);
/* oklch */ color: oklch(30.2% 0.135 288.6);
Tailwind
colors: {
  custom: {
    50: '#705897',
    500: '#30186c',
    950: '#000000',
  },
}
SCSS
$custom: #30186c;
$custom-light: #705897;
$custom-dark: #000000;
JSON
{
  "hex": "#30186c",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 257.143,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30214,
    "c": 0.1351,
    "h": 288.6
  },
  "luminance": 0.02364
}

Semantic roles & 50–950 ramp

primary
#30186C
secondary
#85A23E
accent
#E741B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #30186C

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

Preview Lab → · Contrast checker → · Palette generator →

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