#30155B#30155B

#30155B is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.1% C 0.117 H 295.5°. Best body text is #FFFFFF at 15.17:1 contrast (WCAG AA passes).

Color values

HEX#30155B
RGBrgb(48, 21, 91)
HSLhsl(263, 63%, 22%)
HSVhsv(263, 77%, 36%)
CMYKcmyk(47.3%, 76.9%, 0%, 64.3%)
CIE-LABlab(15.06, 30.45, -36.95)
CIE-LCHlch(15.06, 47.88, 309.50°)
OKLaboklab(28.13% 0.0504 -0.1057)
OKLCHoklch(28.13% 0.117 295.5)
XYZxyz(3.3749, 1.9200, 10.0883)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30155B #405B15
analogous
#151D5B #30155B #53155B
triadic
#30155B #5B3015 #155B30
tetradic
#30155B #5B151D #405B15 #155B53
square
#30155B #5B151D #405B15 #155B53
split-complementary
#30155B #5B5315 #1D5B15
monochromatic
#0D0619 #160A29 #30155B #4A208D #642CBE

Accessibility & contrast

On white

15.17
#30155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#30155B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30155B
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30155B#FFFFFF#000000##FFFFFF
##30155B1.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00255A
Tritanopia (blue-blind)
#242736
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #30155b;
/* rgb */ color: rgb(48, 21, 91);
/* oklch */ color: oklch(28.1% 0.117 295.5);
Tailwind
colors: {
  custom: {
    50: '#6d558a',
    500: '#30155b',
    950: '#000000',
  },
}
SCSS
$custom: #30155b;
$custom-light: #6d558a;
$custom-dark: #000000;
JSON
{
  "hex": "#30155b",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 263.143,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28131,
    "c": 0.11712,
    "h": 295.5
  },
  "luminance": 0.0192
}

Semantic roles & 50–950 ramp

primary
#30155B
secondary
#709239
accent
#E642A7
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #30155B

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

Preview Lab → · Contrast checker → · Palette generator →

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