#30156D#30156D

#30156D is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.140 H 289.0°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#30156D
RGBrgb(48, 21, 109)
HSLhsl(258, 68%, 25%)
HSVhsv(258, 81%, 43%)
CMYKcmyk(56%, 80.7%, 0%, 57.3%)
CIE-LABlab(16.84, 35.88, -45.93)
CIE-LCHlch(16.84, 58.29, 307.99°)
OKLaboklab(29.93% 0.0454 -0.1321)
OKLCHoklch(29.93% 0.14 289)
XYZxyz(4.2466, 2.2686, 14.6792)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30156D #526D15
analogous
#15266D #30156D #5C156D
triadic
#30156D #6D3015 #156D30
tetradic
#30156D #6D1526 #526D15 #156D5C
square
#30156D #6D1526 #526D15 #156D5C
split-complementary
#30156D #6D5C15 #266D15
monochromatic
#0B051A #190B3A #30156D #471FA0 #5D29D4

Accessibility & contrast

On white

14.44
#30156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#30156D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30156D
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30156D#FFFFFF#000000##FFFFFF
##30156D1.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6F
Deuteranopia (green-blind)
#00276B
Tritanopia (blue-blind)
#182E40
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #30156d;
/* rgb */ color: rgb(48, 21, 109);
/* oklch */ color: oklch(29.9% 0.140 289.0);
Tailwind
colors: {
  custom: {
    50: '#705698',
    500: '#30156d',
    950: '#000000',
  },
}
SCSS
$custom: #30156d;
$custom-light: #705698;
$custom-dark: #000000;
JSON
{
  "hex": "#30156d",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 258.409,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29926,
    "c": 0.13968,
    "h": 289
  },
  "luminance": 0.02269
}

Semantic roles & 50–950 ramp

primary
#30156D
secondary
#83A33A
accent
#EB3DB5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #30156D

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

Preview Lab → · Contrast checker → · Palette generator →

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