#2C1D69#2C1D69

#2C1D69 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.125 H 285.2°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#2C1D69
RGBrgb(44, 29, 105)
HSLhsl(252, 57%, 26%)
HSVhsv(252, 72%, 41%)
CMYKcmyk(58.1%, 72.4%, 0%, 58.8%)
CIE-LABlab(17.62, 29.41, -42.06)
CIE-LCHlch(17.62, 51.32, 304.96°)
OKLaboklab(30.25% 0.0328 -0.1209)
OKLCHoklch(30.25% 0.125 285.2)
XYZxyz(4.0271, 2.4339, 13.6194)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1D69 #5A691D
analogous
#1D3469 #2C1D69 #521D69
triadic
#2C1D69 #692C1D #1D692C
tetradic
#2C1D69 #691D34 #5A691D #1D6952
square
#2C1D69 #691D34 #5A691D #1D6952
split-complementary
#2C1D69 #69521D #34691D
monochromatic
#0A0718 #181039 #2C1D69 #402A99 #5538C8

Accessibility & contrast

On white

14.12
#2C1D69 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2C1D69 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1D69
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1D69#FFFFFF#000000##FFFFFF
##2C1D691.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6B
Deuteranopia (green-blind)
#002968
Tritanopia (blue-blind)
#113140
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2c1d69;
/* rgb */ color: rgb(44, 29, 105);
/* oklch */ color: oklch(30.3% 0.125 285.2);
Tailwind
colors: {
  custom: {
    50: '#6c5a95',
    500: '#2c1d69',
    950: '#000000',
  },
}
SCSS
$custom: #2c1d69;
$custom-light: #6c5a95;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1d69",
  "rgb": {
    "r": 44,
    "g": 29,
    "b": 105
  },
  "hsl": {
    "h": 251.842,
    "s": 56.716,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30252,
    "c": 0.1253,
    "h": 285.2
  },
  "luminance": 0.02434
}

Semantic roles & 50–950 ramp

primary
#2C1D69
secondary
#8C9E44
accent
#E048C2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2C1D69

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

Preview Lab → · Contrast checker → · Palette generator →

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