#2C1867#2C1867

#2C1867 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.3% C 0.129 H 287.1°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#2C1867
RGBrgb(44, 24, 103)
HSLhsl(255, 62%, 25%)
HSVhsv(255, 77%, 40%)
CMYKcmyk(57.3%, 76.7%, 0%, 59.6%)
CIE-LABlab(16.34, 31.75, -42.83)
CIE-LCHlch(16.34, 53.32, 306.54°)
OKLaboklab(29.29% 0.0379 -0.1232)
OKLCHoklch(29.29% 0.129 287.1)
XYZxyz(3.8128, 2.1678, 13.0469)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1867 #536718
analogous
#182B67 #2C1867 #541867
triadic
#2C1867 #672C18 #18672C
tetradic
#2C1867 #67182B #536718 #186754
square
#2C1867 #67182B #536718 #186754
split-complementary
#2C1867 #675418 #2B6718
monochromatic
#0B0619 #170C35 #2C1867 #412499 #562FCA

Accessibility & contrast

On white

14.65
#2C1867 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2C1867 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1867
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1867#FFFFFF#000000##FFFFFF
##2C18671.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A69
Deuteranopia (green-blind)
#002666
Tritanopia (blue-blind)
#132D3E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2c1867;
/* rgb */ color: rgb(44, 24, 103);
/* oklch */ color: oklch(29.3% 0.129 287.1);
Tailwind
colors: {
  custom: {
    50: '#6d5793',
    500: '#2c1867',
    950: '#000000',
  },
}
SCSS
$custom: #2c1867;
$custom-light: #6d5793;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1867",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 103
  },
  "hsl": {
    "h": 255.19,
    "s": 62.205,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29285,
    "c": 0.12889,
    "h": 287.1
  },
  "luminance": 0.02168
}

Semantic roles & 50–950 ramp

primary
#2C1867
secondary
#859D3E
accent
#E543BC
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2C1867

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

Preview Lab → · Contrast checker → · Palette generator →

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