#2C154C#2C154C

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

Color values

HEX#2C154C
RGBrgb(44, 21, 76)
HSLhsl(265, 57%, 19%)
HSVhsv(265, 72%, 30%)
CMYKcmyk(42.1%, 72.4%, 0%, 70.2%)
CIE-LABlab(13.19, 25.04, -29.81)
CIE-LCHlch(13.19, 38.94, 310.03°)
OKLaboklab(26.26% 0.0466 -0.0849)
OKLCHoklch(26.26% 0.097 298.7)
XYZxyz(2.6111, 1.5936, 7.0061)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C154C #354C15
analogous
#151A4C #2C154C #48154C
triadic
#2C154C #4C2C15 #154C2C
tetradic
#2C154C #4C151A #354C15 #154C48
square
#2C154C #4C151A #354C15 #154C48
split-complementary
#2C154C #4C4815 #1A4C15
monochromatic
#0E0718 #10081C #2C154C #48227C #642FAC

Accessibility & contrast

On white

15.92
#2C154C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C154C
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C154C#FFFFFF#000000##FFFFFF
##2C154C1.0015.921.3215.92
#FFFFFF15.921.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224E
Deuteranopia (green-blind)
#00214B
Tritanopia (blue-blind)
#25222E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2c154c;
/* rgb */ color: rgb(44, 21, 76);
/* oklch */ color: oklch(26.3% 0.097 298.7);
Tailwind
colors: {
  custom: {
    50: '#68547e',
    500: '#2c154c',
    950: '#000000',
  },
}
SCSS
$custom: #2c154c;
$custom-light: #68547e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c154c",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 76
  },
  "hsl": {
    "h": 265.091,
    "s": 56.701,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26255,
    "c": 0.09685,
    "h": 298.7
  },
  "luminance": 0.01594
}

Semantic roles & 50–950 ramp

primary
#2C154C
secondary
#658439
accent
#E048A0
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2C154C

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

Preview Lab → · Contrast checker → · Palette generator →

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