#30154B#30154B

#30154B is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.096 H 303.4°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#30154B
RGBrgb(48, 21, 75)
HSLhsl(270, 56%, 19%)
HSVhsv(270, 72%, 29%)
CMYKcmyk(36%, 72%, 0%, 70.6%)
CIE-LABlab(13.67, 25.75, -28.33)
CIE-LCHlch(13.67, 38.28, 312.27°)
OKLaboklab(26.7% 0.0531 -0.0804)
OKLCHoklch(26.7% 0.096 303.4)
XYZxyz(2.7568, 1.6727, 6.8329)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30154B #304B15
analogous
#15154B #30154B #4B154B
triadic
#30154B #4B3015 #154B30
tetradic
#30154B #4B1515 #304B15 #154B4B
square
#30154B #4B1515 #304B15 #154B4B
split-complementary
#30154B #4B4B15 #154B15
monochromatic
#0F0718 #11081B #30154B #4F227B #6D30AB

Accessibility & contrast

On white

15.74
#30154B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#30154B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30154B
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30154B#FFFFFF#000000##FFFFFF
##30154B1.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224D
Deuteranopia (green-blind)
#04234A
Tritanopia (blue-blind)
#2B212D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #30154b;
/* rgb */ color: rgb(48, 21, 75);
/* oklch */ color: oklch(26.7% 0.096 303.4);
Tailwind
colors: {
  custom: {
    50: '#6b547e',
    500: '#30154b',
    950: '#000000',
  },
}
SCSS
$custom: #30154b;
$custom-light: #6b547e;
$custom-dark: #000000;
JSON
{
  "hex": "#30154b",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 75
  },
  "hsl": {
    "h": 270,
    "s": 56.25,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26696,
    "c": 0.09636,
    "h": 303.4
  },
  "luminance": 0.01673
}

Semantic roles & 50–950 ramp

primary
#30154B
secondary
#5E8339
accent
#E04894
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #30154B

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

Preview Lab → · Contrast checker → · Palette generator →

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