#30155A#30155A

#30155A is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.116 H 295.9°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#30155A
RGBrgb(48, 21, 90)
HSLhsl(263, 62%, 22%)
HSVhsv(263, 77%, 35%)
CMYKcmyk(46.7%, 76.7%, 0%, 64.7%)
CIE-LABlab(14.97, 30.16, -36.43)
CIE-LCHlch(14.97, 47.29, 309.62°)
OKLaboklab(28.04% 0.0506 -0.1042)
OKLCHoklch(28.04% 0.116 295.9)
XYZxyz(3.3321, 1.9028, 9.8626)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30155A #3F5A15
analogous
#151D5A #30155A #53155A
triadic
#30155A #5A3015 #155A30
tetradic
#30155A #5A151D #3F5A15 #155A53
square
#30155A #5A151D #3F5A15 #155A53
split-complementary
#30155A #5A5315 #1D5A15
monochromatic
#0D0619 #160928 #30155A #4A218C #652CBD

Accessibility & contrast

On white

15.21
#30155A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30155A
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30155A#FFFFFF#000000##FFFFFF
##30155A1.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265C
Deuteranopia (green-blind)
#002559
Tritanopia (blue-blind)
#252636
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #30155a;
/* rgb */ color: rgb(48, 21, 90);
/* oklch */ color: oklch(28.0% 0.116 295.9);
Tailwind
colors: {
  custom: {
    50: '#6d5589',
    500: '#30155a',
    950: '#000000',
  },
}
SCSS
$custom: #30155a;
$custom-light: #6d5589;
$custom-dark: #000000;
JSON
{
  "hex": "#30155a",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 90
  },
  "hsl": {
    "h": 263.478,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28036,
    "c": 0.11584,
    "h": 295.9
  },
  "luminance": 0.01903
}

Semantic roles & 50–950 ramp

primary
#30155A
secondary
#6F9239
accent
#E543A6
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #30155A

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

Preview Lab → · Contrast checker → · Palette generator →

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