#30154F#30154F

#30154F is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.102 H 301.2°. Best body text is #FFFFFF at 15.60:1 contrast (WCAG AA passes).

Color values

HEX#30154F
RGBrgb(48, 21, 79)
HSLhsl(268, 58%, 20%)
HSVhsv(268, 73%, 31%)
CMYKcmyk(39.2%, 73.4%, 0%, 69%)
CIE-LABlab(14.00, 26.91, -30.54)
CIE-LCHlch(14.00, 40.71, 311.38°)
OKLaboklab(27.04% 0.0526 -0.0869)
OKLCHoklch(27.04% 0.102 301.2)
XYZxyz(2.8980, 1.7292, 7.5767)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30154F #344F15
analogous
#15174F #30154F #4D154F
triadic
#30154F #4F3015 #154F30
tetradic
#30154F #4F1517 #344F15 #154F4D
square
#30154F #4F1517 #344F15 #154F4D
split-complementary
#30154F #4F4D15 #174F15
monochromatic
#0F0618 #13081F #30154F #4D227F #6B2FB0

Accessibility & contrast

On white

15.60
#30154F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#30154F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30154F
15.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30154F#FFFFFF#000000##FFFFFF
##30154F1.0015.601.3515.60
#FFFFFF15.601.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#00234E
Tritanopia (blue-blind)
#292230
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #30154f;
/* rgb */ color: rgb(48, 21, 79);
/* oklch */ color: oklch(27.0% 0.102 301.2);
Tailwind
colors: {
  custom: {
    50: '#6b5481',
    500: '#30154f',
    950: '#000000',
  },
}
SCSS
$custom: #30154f;
$custom-light: #6b5481;
$custom-dark: #000000;
JSON
{
  "hex": "#30154f",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 79
  },
  "hsl": {
    "h": 267.931,
    "s": 58,
    "l": 19.608
  },
  "oklch": {
    "l": 0.27038,
    "c": 0.1016,
    "h": 301.2
  },
  "luminance": 0.01729
}

Semantic roles & 50–950 ramp

primary
#30154F
secondary
#638739
accent
#E14799
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #30154F

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

Preview Lab → · Contrast checker → · Palette generator →

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