#2C154A#2C154A

#2C154A is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.1% C 0.094 H 299.8°. Best body text is #FFFFFF at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#2C154A
RGBrgb(44, 21, 74)
HSLhsl(266, 56%, 19%)
HSVhsv(266, 72%, 29%)
CMYKcmyk(40.5%, 71.6%, 0%, 71%)
CIE-LABlab(13.02, 24.44, -28.71)
CIE-LCHlch(13.02, 37.70, 310.41°)
OKLaboklab(26.08% 0.0468 -0.0817)
OKLCHoklch(26.08% 0.094 299.8)
XYZxyz(2.5426, 1.5662, 6.6456)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C154A #334A15
analogous
#15184A #2C154A #46154A
triadic
#2C154A #4A2C15 #154A2C
tetradic
#2C154A #4A1518 #334A15 #154A46
square
#2C154A #4A1518 #334A15 #154A46
split-complementary
#2C154A #4A4615 #184A15
monochromatic
#0E0718 #10071A #2C154A #48237A #6530A9

Accessibility & contrast

On white

15.99
#2C154A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2C154A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C154A
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C154A#FFFFFF#000000##FFFFFF
##2C154A1.0015.991.3115.99
#FFFFFF15.991.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214C
Deuteranopia (green-blind)
#002149
Tritanopia (blue-blind)
#25212D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2c154a;
/* rgb */ color: rgb(44, 21, 74);
/* oklch */ color: oklch(26.1% 0.094 299.8);
Tailwind
colors: {
  custom: {
    50: '#68547d',
    500: '#2c154a',
    950: '#000000',
  },
}
SCSS
$custom: #2c154a;
$custom-light: #68547d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c154a",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 74
  },
  "hsl": {
    "h": 266.038,
    "s": 55.789,
    "l": 18.627
  },
  "oklch": {
    "l": 0.2608,
    "c": 0.09412,
    "h": 299.8
  },
  "luminance": 0.01566
}

Semantic roles & 50–950 ramp

primary
#2C154A
secondary
#628239
accent
#DF499E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2C154A

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

Preview Lab → · Contrast checker → · Palette generator →

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