#2C154D#2C154D

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

Color values

HEX#2C154D
RGBrgb(44, 21, 77)
HSLhsl(265, 57%, 19%)
HSVhsv(265, 73%, 30%)
CMYKcmyk(42.9%, 72.7%, 0%, 69.8%)
CIE-LABlab(13.28, 25.35, -30.36)
CIE-LCHlch(13.28, 39.55, 309.86°)
OKLaboklab(26.34% 0.0464 -0.0865)
OKLCHoklch(26.34% 0.098 298.2)
XYZxyz(2.6461, 1.6076, 7.1906)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C154D #364D15
analogous
#151A4D #2C154D #48154D
triadic
#2C154D #4D2C15 #154D2C
tetradic
#2C154D #4D151A #364D15 #154D48
square
#2C154D #4D151A #364D15 #154D48
split-complementary
#2C154D #4D4815 #1A4D15
monochromatic
#0E0718 #11081D #2C154D #47227D #632FAD

Accessibility & contrast

On white

15.89
#2C154D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2C154D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C154D
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C154D#FFFFFF#000000##FFFFFF
##2C154D1.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c154d;
/* rgb */ color: rgb(44, 21, 77);
/* oklch */ color: oklch(26.3% 0.098 298.2);
Tailwind
colors: {
  custom: {
    50: '#68547f',
    500: '#2c154d',
    950: '#000000',
  },
}
SCSS
$custom: #2c154d;
$custom-light: #68547f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c154d",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 77
  },
  "hsl": {
    "h": 264.643,
    "s": 57.143,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26343,
    "c": 0.09821,
    "h": 298.2
  },
  "luminance": 0.01608
}

Semantic roles & 50–950 ramp

primary
#2C154D
secondary
#668539
accent
#E047A2
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2C154D

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

Preview Lab → · Contrast checker → · Palette generator →

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