#30156E#30156E

#30156E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.141 H 288.7°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#30156E
RGBrgb(48, 21, 110)
HSLhsl(258, 68%, 26%)
HSVhsv(258, 81%, 43%)
CMYKcmyk(56.4%, 80.9%, 0%, 56.9%)
CIE-LABlab(16.94, 36.18, -46.41)
CIE-LCHlch(16.94, 58.85, 307.93°)
OKLaboklab(30.03% 0.0451 -0.1335)
OKLCHoklch(30.03% 0.141 288.7)
XYZxyz(4.3007, 2.2903, 14.9643)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30156E #536E15
analogous
#15266E #30156E #5C156E
triadic
#30156E #6E3015 #156E30
tetradic
#30156E #6E1526 #536E15 #156E5C
square
#30156E #6E1526 #536E15 #156E5C
split-complementary
#30156E #6E5C15 #266E15
monochromatic
#0B051A #1A0B3B #30156E #461FA1 #5D29D5

Accessibility & contrast

On white

14.40
#30156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#30156E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30156E
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30156E#FFFFFF#000000##FFFFFF
##30156E1.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C70
Deuteranopia (green-blind)
#00276C
Tritanopia (blue-blind)
#172E41
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #30156e;
/* rgb */ color: rgb(48, 21, 110);
/* oklch */ color: oklch(30.0% 0.141 288.7);
Tailwind
colors: {
  custom: {
    50: '#705699',
    500: '#30156e',
    950: '#000000',
  },
}
SCSS
$custom: #30156e;
$custom-light: #705699;
$custom-dark: #000000;
JSON
{
  "hex": "#30156e",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 258.202,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.3003,
    "c": 0.14091,
    "h": 288.7
  },
  "luminance": 0.0229
}

Semantic roles & 50–950 ramp

primary
#30156E
secondary
#84A43A
accent
#EB3DB6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #30156E

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

Preview Lab → · Contrast checker → · Palette generator →

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