#2C155D#2C155D

#2C155D is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.120 H 291.2°. Best body text is #FFFFFF at 15.30:1 contrast (WCAG AA passes).

Color values

HEX#2C155D
RGBrgb(44, 21, 93)
HSLhsl(259, 63%, 22%)
HSVhsv(259, 77%, 36%)
CMYKcmyk(52.7%, 77.4%, 0%, 63.5%)
CIE-LABlab(14.75, 30.30, -38.82)
CIE-LCHlch(14.75, 49.24, 307.97°)
OKLaboklab(27.85% 0.0433 -0.1114)
OKLCHoklch(27.85% 0.12 291.2)
XYZxyz(3.2821, 1.8620, 10.5403)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C155D #465D15
analogous
#15225D #2C155D #50155D
triadic
#2C155D #5D2C15 #155D2C
tetradic
#2C155D #5D1522 #465D15 #155D50
square
#2C155D #5D1522 #465D15 #155D50
split-complementary
#2C155D #5D5015 #225D15
monochromatic
#0C0619 #140A2B #2C155D #44208F #5B2CC1

Accessibility & contrast

On white

15.30
#2C155D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2C155D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C155D
15.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C155D#FFFFFF#000000##FFFFFF
##2C155D1.0015.301.3715.30
#FFFFFF15.301.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265F
Deuteranopia (green-blind)
#00245C
Tritanopia (blue-blind)
#1C2837
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2c155d;
/* rgb */ color: rgb(44, 21, 93);
/* oklch */ color: oklch(27.8% 0.120 291.2);
Tailwind
colors: {
  custom: {
    50: '#6b558c',
    500: '#2c155d',
    950: '#000000',
  },
}
SCSS
$custom: #2c155d;
$custom-light: #6b558c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c155d",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 93
  },
  "hsl": {
    "h": 259.167,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27849,
    "c": 0.11951,
    "h": 291.2
  },
  "luminance": 0.01862
}

Semantic roles & 50–950 ramp

primary
#2C155D
secondary
#779439
accent
#E642B2
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C155D

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

Preview Lab → · Contrast checker → · Palette generator →

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