#2D154D#2D154D

#2D154D is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.098 H 299.2°. Best body text is #FFFFFF at 15.84:1 contrast (WCAG AA passes).

Color values

HEX#2D154D
RGBrgb(45, 21, 77)
HSLhsl(266, 57%, 19%)
HSVhsv(266, 73%, 30%)
CMYKcmyk(41.6%, 72.7%, 0%, 69.8%)
CIE-LABlab(13.41, 25.59, -30.14)
CIE-LCHlch(13.41, 39.54, 310.33°)
OKLaboklab(26.47% 0.048 -0.0858)
OKLCHoklch(26.47% 0.098 299.2)
XYZxyz(2.6896, 1.6300, 7.1927)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D154D #354D15
analogous
#15194D #2D154D #49154D
triadic
#2D154D #4D2D15 #154D2D
tetradic
#2D154D #4D1519 #354D15 #154D49
square
#2D154D #4D1519 #354D15 #154D49
split-complementary
#2D154D #4D4915 #194D15
monochromatic
#0E0718 #11081D #2D154D #49227D #652FAD

Accessibility & contrast

On white

15.84
#2D154D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2D154D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D154D
15.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D154D#FFFFFF#000000##FFFFFF
##2D154D1.0015.841.3315.84
#FFFFFF15.841.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224F
Deuteranopia (green-blind)
#00224C
Tritanopia (blue-blind)
#26222E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2d154d;
/* rgb */ color: rgb(45, 21, 77);
/* oklch */ color: oklch(26.5% 0.098 299.2);
Tailwind
colors: {
  custom: {
    50: '#69547f',
    500: '#2d154d',
    950: '#000000',
  },
}
SCSS
$custom: #2d154d;
$custom-light: #69547f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d154d",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 77
  },
  "hsl": {
    "h": 265.714,
    "s": 57.143,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26471,
    "c": 0.09838,
    "h": 299.2
  },
  "luminance": 0.0163
}

Semantic roles & 50–950 ramp

primary
#2D154D
secondary
#648539
accent
#E0479F
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2D154D

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

Preview Lab → · Contrast checker → · Palette generator →

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