#2C1158#2C1158

#2C1158 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.8% C 0.118 H 294.3°. Best body text is #FFFFFF at 15.81:1 contrast (WCAG AA passes).

Color values

HEX#2C1158
RGBrgb(44, 17, 88)
HSLhsl(263, 68%, 21%)
HSVhsv(263, 81%, 35%)
CMYKcmyk(50%, 80.7%, 0%, 65.5%)
CIE-LABlab(13.48, 30.96, -37.54)
CIE-LCHlch(13.48, 48.66, 309.52°)
OKLaboklab(26.8% 0.0486 -0.1076)
OKLCHoklch(26.8% 0.118 294.3)
XYZxyz(3.0001, 1.6409, 9.3893)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1158 #3D5811
analogous
#111958 #2C1158 #4F1158
triadic
#2C1158 #582C11 #11582C
tetradic
#2C1158 #581119 #3D5811 #11584F
square
#2C1158 #581119 #3D5811 #11584F
split-complementary
#2C1158 #584F11 #195811
monochromatic
#0D051A #120725 #2C1158 #461B8B #5F25BF

Accessibility & contrast

On white

15.81
#2C1158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2C1158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1158
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1158#FFFFFF#000000##FFFFFF
##2C11581.0015.811.3315.81
#FFFFFF15.811.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235A
Deuteranopia (green-blind)
#002157
Tritanopia (blue-blind)
#1F2433
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c1158;
/* rgb */ color: rgb(44, 17, 88);
/* oklch */ color: oklch(26.8% 0.118 294.3);
Tailwind
colors: {
  custom: {
    50: '#6b5288',
    500: '#2c1158',
    950: '#000000',
  },
}
SCSS
$custom: #2c1158;
$custom-light: #6b5288;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1158",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 262.817,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.26803,
    "c": 0.11805,
    "h": 294.3
  },
  "luminance": 0.01641
}

Semantic roles & 50–950 ramp

primary
#2C1158
secondary
#6E9134
accent
#EA3DA9
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C1158

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

Preview Lab → · Contrast checker → · Palette generator →

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