#30186A#30186A

#30186A is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.133 H 289.2°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#30186A
RGBrgb(48, 24, 106)
HSLhsl(258, 63%, 25%)
HSVhsv(258, 77%, 42%)
CMYKcmyk(54.7%, 77.4%, 0%, 58.4%)
CIE-LABlab(17.09, 33.37, -43.55)
CIE-LCHlch(17.09, 54.87, 307.45°)
OKLaboklab(30.01% 0.0437 -0.1251)
OKLCHoklch(30.01% 0.133 289.2)
XYZxyz(4.1463, 2.3221, 13.8626)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30186A #526A18
analogous
#18296A #30186A #59186A
triadic
#30186A #6A3018 #186A30
tetradic
#30186A #6A1829 #526A18 #186A59
square
#30186A #6A1829 #526A18 #186A59
split-complementary
#30186A #6A5918 #296A18
monochromatic
#0B0619 #190D38 #30186A #47239C #5D2FCE

Accessibility & contrast

On white

14.34
#30186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#30186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30186A
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30186A#FFFFFF#000000##FFFFFF
##30186A1.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6C
Deuteranopia (green-blind)
#002868
Tritanopia (blue-blind)
#1A2E3F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #30186a;
/* rgb */ color: rgb(48, 24, 106);
/* oklch */ color: oklch(30.0% 0.133 289.2);
Tailwind
colors: {
  custom: {
    50: '#6f5795',
    500: '#30186a',
    950: '#000000',
  },
}
SCSS
$custom: #30186a;
$custom-light: #6f5795;
$custom-dark: #000000;
JSON
{
  "hex": "#30186a",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 257.561,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30013,
    "c": 0.13255,
    "h": 289.2
  },
  "luminance": 0.02322
}

Semantic roles & 50–950 ramp

primary
#30186A
secondary
#83A03E
accent
#E642B6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #30186A

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

Preview Lab → · Contrast checker → · Palette generator →

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