#2C1367#2C1367

#2C1367 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.135 H 288.3°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#2C1367
RGBrgb(44, 19, 103)
HSLhsl(258, 69%, 24%)
HSVhsv(258, 82%, 40%)
CMYKcmyk(57.3%, 81.6%, 0%, 59.6%)
CIE-LABlab(15.38, 34.47, -44.41)
CIE-LCHlch(15.38, 56.22, 307.82°)
OKLaboklab(28.61% 0.0422 -0.1278)
OKLCHoklch(28.61% 0.135 288.3)
XYZxyz(3.7190, 1.9803, 13.0156)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1367 #4E6713
analogous
#132467 #2C1367 #561367
triadic
#2C1367 #672C13 #13672C
tetradic
#2C1367 #671324 #4E6713 #136756
square
#2C1367 #671324 #4E6713 #136756
split-complementary
#2C1367 #675613 #246713
monochromatic
#0B051A #160933 #2C1367 #421D9B #5826CE

Accessibility & contrast

On white

15.04
#2C1367 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2C1367 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1367
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1367#FFFFFF#000000##FFFFFF
##2C13671.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002869
Deuteranopia (green-blind)
#002465
Tritanopia (blue-blind)
#142B3C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2c1367;
/* rgb */ color: rgb(44, 19, 103);
/* oklch */ color: oklch(28.6% 0.135 288.3);
Tailwind
colors: {
  custom: {
    50: '#6d5493',
    500: '#2c1367',
    950: '#000000',
  },
}
SCSS
$custom: #2c1367;
$custom-light: #6d5493;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1367",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 103
  },
  "hsl": {
    "h": 257.857,
    "s": 68.852,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28609,
    "c": 0.13455,
    "h": 288.3
  },
  "luminance": 0.0198
}

Semantic roles & 50–950 ramp

primary
#2C1367
secondary
#809E37
accent
#EC3CB7
background
#F6F5F9
surface
#ECE8F1
border
#C7C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2C1367

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

Preview Lab → · Contrast checker → · Palette generator →

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