#2D153B#2D153B

#2D153B is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.0% C 0.074 H 311.4°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#2D153B
RGBrgb(45, 21, 59)
HSLhsl(278, 48%, 16%)
HSVhsv(278, 64%, 23%)
CMYKcmyk(23.7%, 64.4%, 0%, 76.9%)
CIE-LABlab(12.02, 20.39, -19.77)
CIE-LCHlch(12.02, 28.40, 315.88°)
OKLaboklab(25.02% 0.0488 -0.0554)
OKLCHoklch(25.02% 0.074 311.4)
XYZxyz(2.1396, 1.4100, 4.2963)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D153B #233B15
analogous
#1A153B #2D153B #3B1536
triadic
#2D153B #3B2D15 #153B2D
tetradic
#2D153B #3B1A15 #233B15 #15363B
square
#2D153B #3B1A15 #233B15 #15363B
split-complementary
#2D153B #363B15 #153B1A
monochromatic
#110817 #110817 #2D153B #4F2568 #723595

Accessibility & contrast

On white

16.38
#2D153B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2D153B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D153B
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D153B#FFFFFF#000000##FFFFFF
##2D153B1.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1E3C
Deuteranopia (green-blind)
#12203A
Tritanopia (blue-blind)
#2B1C25
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d153b;
/* rgb */ color: rgb(45, 21, 59);
/* oklch */ color: oklch(25.0% 0.074 311.4);
Tailwind
colors: {
  custom: {
    50: '#675371',
    500: '#2d153b',
    950: '#000000',
  },
}
SCSS
$custom: #2d153b;
$custom-light: #675371;
$custom-dark: #000000;
JSON
{
  "hex": "#2d153b",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 59
  },
  "hsl": {
    "h": 277.895,
    "s": 47.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.2502,
    "c": 0.07384,
    "h": 311.4
  },
  "luminance": 0.0141
}

Semantic roles & 50–950 ramp

primary
#2D153B
secondary
#4E7239
accent
#D75182
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2D153B

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

Preview Lab → · Contrast checker → · Palette generator →

#2D153B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva