#2C156F#2C156F

#2C156F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.142 H 285.5°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#2C156F
RGBrgb(44, 21, 111)
HSLhsl(255, 68%, 26%)
HSVhsv(255, 81%, 44%)
CMYKcmyk(60.4%, 81.1%, 0%, 56.5%)
CIE-LABlab(16.60, 35.91, -47.65)
CIE-LCHlch(16.60, 59.66, 307.00°)
OKLaboklab(29.72% 0.0382 -0.1372)
OKLCHoklch(29.72% 0.142 285.5)
XYZxyz(4.1752, 2.2193, 15.2442)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C156F #586F15
analogous
#152B6F #2C156F #59156F
triadic
#2C156F #6F2C15 #156F2C
tetradic
#2C156F #6F152B #586F15 #156F59
square
#2C156F #6F152B #586F15 #156F59
split-complementary
#2C156F #6F5915 #2B6F15
monochromatic
#0A051A #180B3C #2C156F #401FA2 #5528D6

Accessibility & contrast

On white

14.54
#2C156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C156F
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C156F#FFFFFF#000000##FFFFFF
##2C156F1.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00266D
Tritanopia (blue-blind)
#092F41
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c156f;
/* rgb */ color: rgb(44, 21, 111);
/* oklch */ color: oklch(29.7% 0.142 285.5);
Tailwind
colors: {
  custom: {
    50: '#6e5699',
    500: '#2c156f',
    950: '#000000',
  },
}
SCSS
$custom: #2c156f;
$custom-light: #6e5699;
$custom-dark: #000000;
JSON
{
  "hex": "#2c156f",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 255.333,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29715,
    "c": 0.14244,
    "h": 285.5
  },
  "luminance": 0.0222
}

Semantic roles & 50–950 ramp

primary
#2C156F
secondary
#8AA53A
accent
#EB3DBF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C156F

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

Preview Lab → · Contrast checker → · Palette generator →

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