#2C156E#2C156E

#2C156E is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.141 H 285.8°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#2C156E
RGBrgb(44, 21, 110)
HSLhsl(256, 68%, 26%)
HSVhsv(256, 81%, 43%)
CMYKcmyk(60%, 80.9%, 0%, 56.9%)
CIE-LABlab(16.49, 35.60, -47.17)
CIE-LCHlch(16.49, 59.10, 307.04°)
OKLaboklab(29.61% 0.0385 -0.1359)
OKLCHoklch(29.61% 0.141 285.8)
XYZxyz(4.1205, 2.1974, 14.9558)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C156E #576E15
analogous
#152A6E #2C156E #58156E
triadic
#2C156E #6E2C15 #156E2C
tetradic
#2C156E #6E152A #576E15 #156E58
square
#2C156E #6E152A #576E15 #156E58
split-complementary
#2C156E #6E5815 #2A6E15
monochromatic
#0A051A #170B3B #2C156E #411FA1 #5529D5

Accessibility & contrast

On white

14.59
#2C156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2C156E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C156E
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C156E#FFFFFF#000000##FFFFFF
##2C156E1.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B70
Deuteranopia (green-blind)
#00266C
Tritanopia (blue-blind)
#0A2F41
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c156e;
/* rgb */ color: rgb(44, 21, 110);
/* oklch */ color: oklch(29.6% 0.141 285.8);
Tailwind
colors: {
  custom: {
    50: '#6e5699',
    500: '#2c156e',
    950: '#000000',
  },
}
SCSS
$custom: #2c156e;
$custom-light: #6e5699;
$custom-dark: #000000;
JSON
{
  "hex": "#2c156e",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 255.506,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29608,
    "c": 0.1412,
    "h": 285.8
  },
  "luminance": 0.02198
}

Semantic roles & 50–950 ramp

primary
#2C156E
secondary
#89A43A
accent
#EB3DBE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C156E

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

Preview Lab → · Contrast checker → · Palette generator →

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