#30186E#30186E

#30186E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.138 H 288.0°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#30186E
RGBrgb(48, 24, 110)
HSLhsl(257, 64%, 26%)
HSVhsv(257, 78%, 43%)
CMYKcmyk(56.4%, 78.2%, 0%, 56.9%)
CIE-LABlab(17.49, 34.61, -45.51)
CIE-LCHlch(17.49, 57.17, 307.25°)
OKLaboklab(30.42% 0.0426 -0.1309)
OKLCHoklch(30.42% 0.138 288)
XYZxyz(4.3592, 2.4072, 14.9838)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30186E #566E18
analogous
#182B6E #30186E #5B186E
triadic
#30186E #6E3018 #186E30
tetradic
#30186E #6E182B #566E18 #186E5B
square
#30186E #6E182B #566E18 #186E5B
split-complementary
#30186E #6E5B18 #2B6E18
monochromatic
#0B0519 #1A0D3C #30186E #4623A0 #5C2FD2

Accessibility & contrast

On white

14.18
#30186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30186E
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30186E#FFFFFF#000000##FFFFFF
##30186E1.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D70
Deuteranopia (green-blind)
#00296C
Tritanopia (blue-blind)
#173042
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #30186e;
/* rgb */ color: rgb(48, 24, 110);
/* oklch */ color: oklch(30.4% 0.138 288.0);
Tailwind
colors: {
  custom: {
    50: '#705898',
    500: '#30186e',
    950: '#000000',
  },
}
SCSS
$custom: #30186e;
$custom-light: #705898;
$custom-dark: #000000;
JSON
{
  "hex": "#30186e",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 256.744,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30417,
    "c": 0.13763,
    "h": 288
  },
  "luminance": 0.02407
}

Semantic roles & 50–950 ramp

primary
#30186E
secondary
#87A43E
accent
#E741B9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #30186E

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

Preview Lab → · Contrast checker → · Palette generator →

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