#2C1267#2C1267

#2C1267 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.5% C 0.136 H 288.5°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#2C1267
RGBrgb(44, 18, 103)
HSLhsl(258, 70%, 24%)
HSVhsv(258, 83%, 40%)
CMYKcmyk(57.3%, 82.5%, 0%, 59.6%)
CIE-LABlab(15.21, 34.98, -44.70)
CIE-LCHlch(15.21, 56.76, 308.04°)
OKLaboklab(28.49% 0.043 -0.1286)
OKLCHoklch(28.49% 0.136 288.5)
XYZxyz(3.7025, 1.9472, 13.0101)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1267 #4D6712
analogous
#122267 #2C1267 #561267
triadic
#2C1267 #672C12 #12672C
tetradic
#2C1267 #671222 #4D6712 #126756
square
#2C1267 #671222 #4D6712 #126756
split-complementary
#2C1267 #675612 #226712
monochromatic
#0B051A #160933 #2C1267 #421B9B #5924CF

Accessibility & contrast

On white

15.11
#2C1267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1267
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1267#FFFFFF#000000##FFFFFF
##2C12671.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.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: #2c1267;
/* rgb */ color: rgb(44, 18, 103);
/* oklch */ color: oklch(28.5% 0.136 288.5);
Tailwind
colors: {
  custom: {
    50: '#6d5493',
    500: '#2c1267',
    950: '#000000',
  },
}
SCSS
$custom: #2c1267;
$custom-light: #6d5493;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1267",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 103
  },
  "hsl": {
    "h": 258.353,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28486,
    "c": 0.1356,
    "h": 288.5
  },
  "luminance": 0.01947
}

Semantic roles & 50–950 ramp

primary
#2C1267
secondary
#7F9F36
accent
#ED3BB7
background
#F6F4F9
surface
#ECE8F1
border
#C7C4CB
text
#08030D
muted
#7A787E

Preview Lab

Preview with #2C1267

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

Preview Lab → · Contrast checker → · Palette generator →

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