#30154D#30154D

#30154D is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.099 H 302.3°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#30154D
RGBrgb(48, 21, 77)
HSLhsl(269, 57%, 19%)
HSVhsv(269, 73%, 30%)
CMYKcmyk(37.7%, 72.7%, 0%, 69.8%)
CIE-LABlab(13.83, 26.33, -29.44)
CIE-LCHlch(13.83, 39.50, 311.80°)
OKLaboklab(26.87% 0.0529 -0.0837)
OKLCHoklch(26.87% 0.099 302.3)
XYZxyz(2.8263, 1.7005, 7.1991)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30154D #324D15
analogous
#15164D #30154D #4C154D
triadic
#30154D #4D3015 #154D30
tetradic
#30154D #4D1516 #324D15 #154D4C
square
#30154D #4D1516 #324D15 #154D4C
split-complementary
#30154D #4D4C15 #164D15
monochromatic
#0F0718 #12081D #30154D #4E227D #6C2FAD

Accessibility & contrast

On white

15.67
#30154D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#30154D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30154D
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30154D#FFFFFF#000000##FFFFFF
##30154D1.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234F
Deuteranopia (green-blind)
#01234C
Tritanopia (blue-blind)
#2A222F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #30154d;
/* rgb */ color: rgb(48, 21, 77);
/* oklch */ color: oklch(26.9% 0.099 302.3);
Tailwind
colors: {
  custom: {
    50: '#6b547f',
    500: '#30154d',
    950: '#000000',
  },
}
SCSS
$custom: #30154d;
$custom-light: #6b547f;
$custom-dark: #000000;
JSON
{
  "hex": "#30154d",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 77
  },
  "hsl": {
    "h": 268.929,
    "s": 57.143,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26865,
    "c": 0.09899,
    "h": 302.3
  },
  "luminance": 0.01701
}

Semantic roles & 50–950 ramp

primary
#30154D
secondary
#608539
accent
#E04797
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #30154D

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

Preview Lab → · Contrast checker → · Palette generator →

#30154D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva