#30158A#30158A

#30158A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.174 H 281.8°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#30158A
RGBrgb(48, 21, 138)
HSLhsl(254, 74%, 31%)
HSVhsv(254, 85%, 54%)
CMYKcmyk(65.2%, 84.8%, 0%, 45.9%)
CIE-LABlab(20.04, 44.54, -59.17)
CIE-LCHlch(20.04, 74.06, 306.97°)
OKLaboklab(33.1% 0.0355 -0.1707)
OKLCHoklch(33.1% 0.174 281.8)
XYZxyz(6.0731, 2.9992, 24.2987)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30158A #6F8A15
analogous
#15348A #30158A #6A158A
triadic
#30158A #8A3015 #158A30
tetradic
#30158A #8A1534 #6F8A15 #158A6A
square
#30158A #8A1534 #6F8A15 #158A6A
split-complementary
#30158A #8A6A15 #348A15
monochromatic
#0B0520 #1E0D55 #30158A #421DBF #5F39E1

Accessibility & contrast

On white

13.13
#30158A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#30158A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30158A
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30158A#FFFFFF#000000##FFFFFF
##30158A1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348D
Deuteranopia (green-blind)
#002C88
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #30158a;
/* rgb */ color: rgb(48, 21, 138);
/* oklch */ color: oklch(33.1% 0.174 281.8);
Tailwind
colors: {
  custom: {
    50: '#7658ad',
    500: '#30158a',
    950: '#000000',
  },
}
SCSS
$custom: #30158a;
$custom-light: #7658ad;
$custom-dark: #000000;
JSON
{
  "hex": "#30158a",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 138
  },
  "hsl": {
    "h": 253.846,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33099,
    "c": 0.17437,
    "h": 281.8
  },
  "luminance": 0.03
}

Semantic roles & 50–950 ramp

primary
#30158A
secondary
#A0BE3D
accent
#F038C6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #30158A

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

Preview Lab → · Contrast checker → · Palette generator →

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