#2C155A#2C155A

#2C155A is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.116 H 292.4°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#2C155A
RGBrgb(44, 21, 90)
HSLhsl(260, 62%, 22%)
HSVhsv(260, 77%, 35%)
CMYKcmyk(51.1%, 76.7%, 0%, 64.7%)
CIE-LABlab(14.46, 29.36, -37.28)
CIE-LCHlch(14.46, 47.46, 308.22°)
OKLaboklab(27.56% 0.044 -0.1069)
OKLCHoklch(27.56% 0.116 292.4)
XYZxyz(3.1518, 1.8099, 9.8542)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C155A #435A15
analogous
#15215A #2C155A #4F155A
triadic
#2C155A #5A2C15 #155A2C
tetradic
#2C155A #5A1521 #435A15 #155A4F
square
#2C155A #5A1521 #435A15 #155A4F
split-complementary
#2C155A #5A4F15 #215A15
monochromatic
#0C0619 #140928 #2C155A #44218C #5D2CBD

Accessibility & contrast

On white

15.42
#2C155A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2C155A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C155A
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C155A#FFFFFF#000000##FFFFFF
##2C155A1.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002359
Tritanopia (blue-blind)
#1E2736
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2c155a;
/* rgb */ color: rgb(44, 21, 90);
/* oklch */ color: oklch(27.6% 0.116 292.4);
Tailwind
colors: {
  custom: {
    50: '#6a5489',
    500: '#2c155a',
    950: '#000000',
  },
}
SCSS
$custom: #2c155a;
$custom-light: #6a5489;
$custom-dark: #000000;
JSON
{
  "hex": "#2c155a",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 90
  },
  "hsl": {
    "h": 260,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27555,
    "c": 0.11559,
    "h": 292.4
  },
  "luminance": 0.0181
}

Semantic roles & 50–950 ramp

primary
#2C155A
secondary
#749239
accent
#E543AF
background
#F6F5F8
surface
#EBE8F0
border
#C6C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C155A

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

Preview Lab → · Contrast checker → · Palette generator →

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