#30115F#30115F

#30115F is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.0% C 0.127 H 294.8°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#30115F
RGBrgb(48, 17, 95)
HSLhsl(264, 70%, 22%)
HSVhsv(264, 82%, 37%)
CMYKcmyk(49.5%, 82.1%, 0%, 62.7%)
CIE-LABlab(14.71, 33.73, -40.20)
CIE-LCHlch(14.71, 52.48, 310.00°)
OKLaboklab(28% 0.0532 -0.1152)
OKLCHoklch(28% 0.127 294.8)
XYZxyz(3.4844, 1.8554, 10.9988)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30115F #405F11
analogous
#11195F #30115F #57115F
triadic
#30115F #5F3011 #115F30
tetradic
#30115F #5F1119 #405F11 #115F57
square
#30115F #5F1119 #405F11 #115F57
split-complementary
#30115F #5F5711 #195F11
monochromatic
#0D051A #16082B #30115F #4A1A93 #6424C7

Accessibility & contrast

On white

15.32
#30115F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#30115F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30115F
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30115F#FFFFFF#000000##FFFFFF
##30115F1.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00245E
Tritanopia (blue-blind)
#222637
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #30115f;
/* rgb */ color: rgb(48, 17, 95);
/* oklch */ color: oklch(28.0% 0.127 294.8);
Tailwind
colors: {
  custom: {
    50: '#6e538d',
    500: '#30115f',
    950: '#000000',
  },
}
SCSS
$custom: #30115f;
$custom-light: #6e538d;
$custom-dark: #000000;
JSON
{
  "hex": "#30115f",
  "rgb": {
    "r": 48,
    "g": 17,
    "b": 95
  },
  "hsl": {
    "h": 263.846,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28002,
    "c": 0.12694,
    "h": 294.8
  },
  "luminance": 0.01855
}

Semantic roles & 50–950 ramp

primary
#30115F
secondary
#709834
accent
#EC3BA6
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #30115F

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

Preview Lab → · Contrast checker → · Palette generator →

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