#2C155E#2C155E

#2C155E is a dark, vivid violet. Relative luminance 0.019; OKLCH L 27.9% C 0.121 H 290.9°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#2C155E
RGBrgb(44, 21, 94)
HSLhsl(259, 63%, 23%)
HSVhsv(259, 78%, 37%)
CMYKcmyk(53.2%, 77.7%, 0%, 63.1%)
CIE-LABlab(14.84, 30.61, -39.33)
CIE-LCHlch(14.84, 49.84, 307.89°)
OKLaboklab(27.95% 0.043 -0.1129)
OKLCHoklch(27.95% 0.121 290.9)
XYZxyz(3.3267, 1.8798, 10.7751)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C155E #475E15
analogous
#15235E #2C155E #50155E
triadic
#2C155E #5E2C15 #155E2C
tetradic
#2C155E #5E1523 #475E15 #155E50
square
#2C155E #5E1523 #475E15 #155E50
split-complementary
#2C155E #5E5015 #235E15
monochromatic
#0C0619 #150A2C #2C155E #432090 #5B2BC2

Accessibility & contrast

On white

15.26
#2C155E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C155E
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C155E#FFFFFF#000000##FFFFFF
##2C155E1.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#00245D
Tritanopia (blue-blind)
#1B2838
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2c155e;
/* rgb */ color: rgb(44, 21, 94);
/* oklch */ color: oklch(27.9% 0.121 290.9);
Tailwind
colors: {
  custom: {
    50: '#6b558c',
    500: '#2c155e',
    950: '#000000',
  },
}
SCSS
$custom: #2c155e;
$custom-light: #6b558c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c155e",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 94
  },
  "hsl": {
    "h": 258.904,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27949,
    "c": 0.12081,
    "h": 290.9
  },
  "luminance": 0.0188
}

Semantic roles & 50–950 ramp

primary
#2C155E
secondary
#789539
accent
#E741B2
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C155E

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

Preview Lab → · Contrast checker → · Palette generator →

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