#30115C#30115C

#30115C is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.123 H 296.0°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#30115C
RGBrgb(48, 17, 92)
HSLhsl(265, 69%, 21%)
HSVhsv(265, 82%, 36%)
CMYKcmyk(47.8%, 81.5%, 0%, 63.9%)
CIE-LABlab(14.41, 32.86, -38.68)
CIE-LCHlch(14.41, 50.75, 310.35°)
OKLaboklab(27.7% 0.0541 -0.1108)
OKLCHoklch(27.7% 0.123 296)
XYZxyz(3.3506, 1.8019, 10.2944)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30115C #3D5C11
analogous
#11185C #30115C #56115C
triadic
#30115C #5C3011 #115C30
tetradic
#30115C #5C1118 #3D5C11 #115C56
square
#30115C #5C1118 #3D5C11 #115C56
split-complementary
#30115C #5C5611 #185C11
monochromatic
#0D051A #150728 #30115C #4B1B90 #6624C3

Accessibility & contrast

On white

15.44
#30115C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30115C
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30115C#FFFFFF#000000##FFFFFF
##30115C1.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255E
Deuteranopia (green-blind)
#00235B
Tritanopia (blue-blind)
#242536
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #30115c;
/* rgb */ color: rgb(48, 17, 92);
/* oklch */ color: oklch(27.7% 0.123 296.0);
Tailwind
colors: {
  custom: {
    50: '#6e538b',
    500: '#30115c',
    950: '#000000',
  },
}
SCSS
$custom: #30115c;
$custom-light: #6e538b;
$custom-dark: #000000;
JSON
{
  "hex": "#30115c",
  "rgb": {
    "r": 48,
    "g": 17,
    "b": 92
  },
  "hsl": {
    "h": 264.8,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27702,
    "c": 0.12331,
    "h": 296
  },
  "luminance": 0.01802
}

Semantic roles & 50–950 ramp

primary
#30115C
secondary
#6D9534
accent
#EC3CA3
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #30115C

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

Preview Lab → · Contrast checker → · Palette generator →

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