#2C1157#2C1157

#2C1157 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.7% C 0.117 H 294.7°. Best body text is #FFFFFF at 15.85:1 contrast (WCAG AA passes).

Color values

HEX#2C1157
RGBrgb(44, 17, 87)
HSLhsl(263, 67%, 20%)
HSVhsv(263, 80%, 34%)
CMYKcmyk(49.4%, 80.5%, 0%, 65.9%)
CIE-LABlab(13.38, 30.66, -37.02)
CIE-LCHlch(13.38, 48.07, 309.63°)
OKLaboklab(26.7% 0.0488 -0.1061)
OKLCHoklch(26.7% 0.117 294.7)
XYZxyz(2.9590, 1.6244, 9.1726)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1157 #3C5711
analogous
#111957 #2C1157 #4F1157
triadic
#2C1157 #572C11 #11572C
tetradic
#2C1157 #571119 #3C5711 #11574F
square
#2C1157 #571119 #3C5711 #11574F
split-complementary
#2C1157 #574F11 #195711
monochromatic
#0D051A #120724 #2C1157 #461B8A #6025BD

Accessibility & contrast

On white

15.85
#2C1157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2C1157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1157
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1157#FFFFFF#000000##FFFFFF
##2C11571.0015.851.3215.85
#FFFFFF15.851.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002359
Deuteranopia (green-blind)
#002156
Tritanopia (blue-blind)
#202433
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2c1157;
/* rgb */ color: rgb(44, 17, 87);
/* oklch */ color: oklch(26.7% 0.117 294.7);
Tailwind
colors: {
  custom: {
    50: '#6a5287',
    500: '#2c1157',
    950: '#000000',
  },
}
SCSS
$custom: #2c1157;
$custom-light: #6a5287;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1157",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 263.143,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26703,
    "c": 0.11679,
    "h": 294.7
  },
  "luminance": 0.01624
}

Semantic roles & 50–950 ramp

primary
#2C1157
secondary
#6C9034
accent
#EA3EA8
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C1157

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

Preview Lab → · Contrast checker → · Palette generator →

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