#2C1366#2C1366

#2C1366 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.5% C 0.133 H 288.6°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#2C1366
RGBrgb(44, 19, 102)
HSLhsl(258, 69%, 24%)
HSVhsv(258, 81%, 40%)
CMYKcmyk(56.9%, 81.4%, 0%, 60%)
CIE-LABlab(15.28, 34.17, -43.93)
CIE-LCHlch(15.28, 55.65, 307.88°)
OKLaboklab(28.5% 0.0425 -0.1263)
OKLCHoklch(28.5% 0.133 288.6)
XYZxyz(3.6691, 1.9603, 12.7528)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1366 #4D6613
analogous
#132366 #2C1366 #551366
triadic
#2C1366 #662C13 #13662C
tetradic
#2C1366 #661323 #4D6613 #136655
square
#2C1366 #661323 #4D6613 #136655
split-complementary
#2C1366 #665513 #236613
monochromatic
#0B051A #160932 #2C1366 #421D9A #5926CD

Accessibility & contrast

On white

15.08
#2C1366 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2C1366 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1366
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1366#FFFFFF#000000##FFFFFF
##2C13661.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002868
Deuteranopia (green-blind)
#002464
Tritanopia (blue-blind)
#152B3C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2c1366;
/* rgb */ color: rgb(44, 19, 102);
/* oklch */ color: oklch(28.5% 0.133 288.6);
Tailwind
colors: {
  custom: {
    50: '#6d5493',
    500: '#2c1366',
    950: '#000000',
  },
}
SCSS
$custom: #2c1366;
$custom-light: #6d5493;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1366",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 102
  },
  "hsl": {
    "h": 258.072,
    "s": 68.595,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28503,
    "c": 0.13331,
    "h": 288.6
  },
  "luminance": 0.01961
}

Semantic roles & 50–950 ramp

primary
#2C1366
secondary
#7F9D37
accent
#EB3CB7
background
#F6F5F9
surface
#ECE8F1
border
#C7C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2C1366

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

Preview Lab → · Contrast checker → · Palette generator →

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