#30135B#30135B

#30135B is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.9% C 0.120 H 296.0°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#30135B
RGBrgb(48, 19, 91)
HSLhsl(264, 65%, 22%)
HSVhsv(264, 79%, 36%)
CMYKcmyk(47.3%, 79.1%, 0%, 64.3%)
CIE-LABlab(14.68, 31.54, -37.57)
CIE-LCHlch(14.68, 49.06, 310.01°)
OKLaboklab(27.86% 0.0524 -0.1076)
OKLCHoklch(27.86% 0.12 296)
XYZxyz(3.3396, 1.8494, 10.0765)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30135B #3E5B13
analogous
#131A5B #30135B #54135B
triadic
#30135B #5B3013 #135B30
tetradic
#30135B #5B131A #3E5B13 #135B54
square
#30135B #5B131A #3E5B13 #135B54
split-complementary
#30135B #5B5413 #1A5B13
monochromatic
#0D0519 #150828 #30135B #4B1E8E #6528C0

Accessibility & contrast

On white

15.33
#30135B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30135B
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30135B#FFFFFF#000000##FFFFFF
##30135B1.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#00245A
Tritanopia (blue-blind)
#242636
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #30135b;
/* rgb */ color: rgb(48, 19, 91);
/* oklch */ color: oklch(27.9% 0.120 296.0);
Tailwind
colors: {
  custom: {
    50: '#6d548a',
    500: '#30135b',
    950: '#000000',
  },
}
SCSS
$custom: #30135b;
$custom-light: #6d548a;
$custom-dark: #000000;
JSON
{
  "hex": "#30135b",
  "rgb": {
    "r": 48,
    "g": 19,
    "b": 91
  },
  "hsl": {
    "h": 264.167,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27858,
    "c": 0.11967,
    "h": 296
  },
  "luminance": 0.01849
}

Semantic roles & 50–950 ramp

primary
#30135B
secondary
#6E9337
accent
#E83FA4
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #30135B

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

Preview Lab → · Contrast checker → · Palette generator →

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