#30186D#30186D

#30186D is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.136 H 288.3°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#30186D
RGBrgb(48, 24, 109)
HSLhsl(257, 64%, 26%)
HSVhsv(257, 78%, 43%)
CMYKcmyk(56%, 78%, 0%, 57.3%)
CIE-LABlab(17.39, 34.30, -45.02)
CIE-LCHlch(17.39, 56.60, 307.30°)
OKLaboklab(30.32% 0.0429 -0.1294)
OKLCHoklch(30.32% 0.136 288.3)
XYZxyz(4.3051, 2.3856, 14.6987)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30186D #556D18
analogous
#182A6D #30186D #5A186D
triadic
#30186D #6D3018 #186D30
tetradic
#30186D #6D182A #556D18 #186D5A
square
#30186D #6D182A #556D18 #186D5A
split-complementary
#30186D #6D5A18 #2A6D18
monochromatic
#0B0619 #1A0D3B #30186D #46239F #5C2ED1

Accessibility & contrast

On white

14.22
#30186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#30186D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30186D
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30186D#FFFFFF#000000##FFFFFF
##30186D1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6F
Deuteranopia (green-blind)
#00286B
Tritanopia (blue-blind)
#182F41
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #30186d;
/* rgb */ color: rgb(48, 24, 109);
/* oklch */ color: oklch(30.3% 0.136 288.3);
Tailwind
colors: {
  custom: {
    50: '#705898',
    500: '#30186d',
    950: '#000000',
  },
}
SCSS
$custom: #30186d;
$custom-light: #705898;
$custom-dark: #000000;
JSON
{
  "hex": "#30186d",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 256.941,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30315,
    "c": 0.13636,
    "h": 288.3
  },
  "luminance": 0.02386
}

Semantic roles & 50–950 ramp

primary
#30186D
secondary
#86A33E
accent
#E741B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #30186D

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

Preview Lab → · Contrast checker → · Palette generator →

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