#30135C#30135C

#30135C is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.0% C 0.121 H 295.6°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#30135C
RGBrgb(48, 19, 92)
HSLhsl(264, 66%, 22%)
HSVhsv(264, 79%, 36%)
CMYKcmyk(47.8%, 79.3%, 0%, 63.9%)
CIE-LABlab(14.77, 31.84, -38.09)
CIE-LCHlch(14.77, 49.64, 309.89°)
OKLaboklab(27.96% 0.0522 -0.1091)
OKLCHoklch(27.96% 0.121 295.6)
XYZxyz(3.3830, 1.8667, 10.3052)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30135C #3F5C13
analogous
#131A5C #30135C #55135C
triadic
#30135C #5C3013 #135C30
tetradic
#30135C #5C131A #3F5C13 #135C55
square
#30135C #5C131A #3F5C13 #135C55
split-complementary
#30135C #5C5513 #1A5C13
monochromatic
#0D0519 #160929 #30135C #4A1D8F #6528C1

Accessibility & contrast

On white

15.29
#30135C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#30135C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30135C
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30135C#FFFFFF#000000##FFFFFF
##30135C1.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265E
Deuteranopia (green-blind)
#00245B
Tritanopia (blue-blind)
#242636
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #30135c;
/* rgb */ color: rgb(48, 19, 92);
/* oklch */ color: oklch(28.0% 0.121 295.6);
Tailwind
colors: {
  custom: {
    50: '#6d548b',
    500: '#30135c',
    950: '#000000',
  },
}
SCSS
$custom: #30135c;
$custom-light: #6d548b;
$custom-dark: #000000;
JSON
{
  "hex": "#30135c",
  "rgb": {
    "r": 48,
    "g": 19,
    "b": 92
  },
  "hsl": {
    "h": 263.836,
    "s": 65.766,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27955,
    "c": 0.12092,
    "h": 295.6
  },
  "luminance": 0.01867
}

Semantic roles & 50–950 ramp

primary
#30135C
secondary
#6F9437
accent
#E93FA5
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #30135C

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

Preview Lab → · Contrast checker → · Palette generator →

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