#30115B#30115B

#30115B is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.122 H 296.5°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#30115B
RGBrgb(48, 17, 91)
HSLhsl(265, 69%, 21%)
HSVhsv(265, 81%, 36%)
CMYKcmyk(47.3%, 81.3%, 0%, 64.3%)
CIE-LABlab(14.31, 32.57, -38.17)
CIE-LCHlch(14.31, 50.18, 310.48°)
OKLaboklab(27.6% 0.0544 -0.1093)
OKLCHoklch(27.6% 0.122 296.5)
XYZxyz(3.3072, 1.7845, 10.0657)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30115B #3C5B11
analogous
#11175B #30115B #55115B
triadic
#30115B #5B3011 #115B30
tetradic
#30115B #5B1117 #3C5B11 #115B55
square
#30115B #5B1117 #3C5B11 #115B55
split-complementary
#30115B #5B5511 #175B11
monochromatic
#0E051A #150727 #30115B #4B1B8F #6624C2

Accessibility & contrast

On white

15.48
#30115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30115B
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30115B#FFFFFF#000000##FFFFFF
##30115B1.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#00235A
Tritanopia (blue-blind)
#242535
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #30115b;
/* rgb */ color: rgb(48, 17, 91);
/* oklch */ color: oklch(27.6% 0.122 296.5);
Tailwind
colors: {
  custom: {
    50: '#6d538a',
    500: '#30115b',
    950: '#000000',
  },
}
SCSS
$custom: #30115b;
$custom-light: #6d538a;
$custom-dark: #000000;
JSON
{
  "hex": "#30115b",
  "rgb": {
    "r": 48,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 265.135,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27603,
    "c": 0.1221,
    "h": 296.5
  },
  "luminance": 0.01785
}

Semantic roles & 50–950 ramp

primary
#30115B
secondary
#6C9434
accent
#EB3CA2
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #30115B

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

Preview Lab → · Contrast checker → · Palette generator →

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