#2C155F#2C155F

#2C155F is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.0% C 0.122 H 290.5°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#2C155F
RGBrgb(44, 21, 95)
HSLhsl(259, 64%, 23%)
HSVhsv(259, 78%, 37%)
CMYKcmyk(53.7%, 77.9%, 0%, 62.7%)
CIE-LABlab(14.94, 30.92, -39.84)
CIE-LCHlch(14.94, 50.43, 307.82°)
OKLaboklab(28.05% 0.0428 -0.1144)
OKLCHoklch(28.05% 0.122 290.5)
XYZxyz(3.3718, 1.8979, 11.0129)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C155F #485F15
analogous
#15235F #2C155F #51155F
triadic
#2C155F #5F2C15 #155F2C
tetradic
#2C155F #5F1523 #485F15 #155F51
square
#2C155F #5F1523 #485F15 #155F51
split-complementary
#2C155F #5F5115 #235F15
monochromatic
#0C0619 #150A2D #2C155F #432091 #5A2BC3

Accessibility & contrast

On white

15.22
#2C155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2C155F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C155F
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C155F#FFFFFF#000000##FFFFFF
##2C155F1.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00245E
Tritanopia (blue-blind)
#1A2938
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2c155f;
/* rgb */ color: rgb(44, 21, 95);
/* oklch */ color: oklch(28.0% 0.122 290.5);
Tailwind
colors: {
  custom: {
    50: '#6b558d',
    500: '#2c155f',
    950: '#000000',
  },
}
SCSS
$custom: #2c155f;
$custom-light: #6b558d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c155f",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 258.649,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28049,
    "c": 0.12211,
    "h": 290.5
  },
  "luminance": 0.01898
}

Semantic roles & 50–950 ramp

primary
#2C155F
secondary
#79963A
accent
#E741B3
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C155F

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

Preview Lab → · Contrast checker → · Palette generator →

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