#30115D#30115D

#30115D is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.125 H 295.6°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#30115D
RGBrgb(48, 17, 93)
HSLhsl(264, 69%, 22%)
HSVhsv(264, 82%, 36%)
CMYKcmyk(48.4%, 81.7%, 0%, 63.5%)
CIE-LABlab(14.51, 33.15, -39.19)
CIE-LCHlch(14.51, 51.33, 310.23°)
OKLaboklab(27.8% 0.0538 -0.1123)
OKLCHoklch(27.8% 0.125 295.6)
XYZxyz(3.3946, 1.8195, 10.5261)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30115D #3E5D11
analogous
#11185D #30115D #56115D
triadic
#30115D #5D3011 #115D30
tetradic
#30115D #5D1118 #3E5D11 #115D56
square
#30115D #5D1118 #3E5D11 #115D56
split-complementary
#30115D #5D5611 #185D11
monochromatic
#0D051A #150829 #30115D #4B1A91 #6524C4

Accessibility & contrast

On white

15.40
#30115D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#30115D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30115D
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30115D#FFFFFF#000000##FFFFFF
##30115D1.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#00245C
Tritanopia (blue-blind)
#232636
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #30115d;
/* rgb */ color: rgb(48, 17, 93);
/* oklch */ color: oklch(27.8% 0.125 295.6);
Tailwind
colors: {
  custom: {
    50: '#6e538c',
    500: '#30115d',
    950: '#000000',
  },
}
SCSS
$custom: #30115d;
$custom-light: #6e538c;
$custom-dark: #000000;
JSON
{
  "hex": "#30115d",
  "rgb": {
    "r": 48,
    "g": 17,
    "b": 93
  },
  "hsl": {
    "h": 264.474,
    "s": 69.091,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27801,
    "c": 0.12452,
    "h": 295.6
  },
  "luminance": 0.0182
}

Semantic roles & 50–950 ramp

primary
#30115D
secondary
#6E9634
accent
#EC3CA4
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #30115D

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

Preview Lab → · Contrast checker → · Palette generator →

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