#30186B#30186B

#30186B is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.134 H 288.9°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#30186B
RGBrgb(48, 24, 107)
HSLhsl(257, 63%, 26%)
HSVhsv(257, 78%, 42%)
CMYKcmyk(55.1%, 77.6%, 0%, 58%)
CIE-LABlab(17.19, 33.68, -44.05)
CIE-LCHlch(17.19, 55.45, 307.40°)
OKLaboklab(30.11% 0.0434 -0.1266)
OKLCHoklch(30.11% 0.134 288.9)
XYZxyz(4.1986, 2.3430, 14.1381)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30186B #536B18
analogous
#182A6B #30186B #59186B
triadic
#30186B #6B3018 #186B30
tetradic
#30186B #6B182A #536B18 #186B59
square
#30186B #6B182A #536B18 #186B59
split-complementary
#30186B #6B5918 #2A6B18
monochromatic
#0B0619 #1A0D39 #30186B #46239D #5D2ECF

Accessibility & contrast

On white

14.30
#30186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30186B
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30186B#FFFFFF#000000##FFFFFF
##30186B1.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6D
Deuteranopia (green-blind)
#002869
Tritanopia (blue-blind)
#1A2F40
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #30186b;
/* rgb */ color: rgb(48, 24, 107);
/* oklch */ color: oklch(30.1% 0.134 288.9);
Tailwind
colors: {
  custom: {
    50: '#705896',
    500: '#30186b',
    950: '#000000',
  },
}
SCSS
$custom: #30186b;
$custom-light: #705896;
$custom-dark: #000000;
JSON
{
  "hex": "#30186b",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 257.349,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30113,
    "c": 0.13383,
    "h": 288.9
  },
  "luminance": 0.02343
}

Semantic roles & 50–950 ramp

primary
#30186B
secondary
#84A13E
accent
#E641B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #30186B

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

Preview Lab → · Contrast checker → · Palette generator →

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