#2C1D64#2C1D64

#2C1D64 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.8% C 0.118 H 286.5°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#2C1D64
RGBrgb(44, 29, 100)
HSLhsl(253, 55%, 25%)
HSVhsv(253, 71%, 39%)
CMYKcmyk(56%, 71%, 0%, 60.8%)
CIE-LABlab(17.15, 27.74, -39.54)
CIE-LCHlch(17.15, 48.30, 305.05°)
OKLaboklab(29.77% 0.0336 -0.1135)
OKLCHoklch(29.77% 0.118 286.5)
XYZxyz(3.7776, 2.3341, 12.3056)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1D64 #55641D
analogous
#1D3164 #2C1D64 #4F1D64
triadic
#2C1D64 #642C1D #1D642C
tetradic
#2C1D64 #641D31 #55641D #1D644F
square
#2C1D64 #641D31 #55641D #1D644F
split-complementary
#2C1D64 #644F1D #31641D
monochromatic
#0A0718 #170F35 #2C1D64 #412B93 #5639C3

Accessibility & contrast

On white

14.32
#2C1D64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2C1D64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1D64
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1D64#FFFFFF#000000##FFFFFF
##2C1D641.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C66
Deuteranopia (green-blind)
#002863
Tritanopia (blue-blind)
#162F3D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2c1d64;
/* rgb */ color: rgb(44, 29, 100);
/* oklch */ color: oklch(29.8% 0.118 286.5);
Tailwind
colors: {
  custom: {
    50: '#6c5a91',
    500: '#2c1d64',
    950: '#000000',
  },
}
SCSS
$custom: #2c1d64;
$custom-light: #6c5a91;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1d64",
  "rgb": {
    "r": 44,
    "g": 29,
    "b": 100
  },
  "hsl": {
    "h": 252.676,
    "s": 55.039,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29773,
    "c": 0.11841,
    "h": 286.5
  },
  "luminance": 0.02334
}

Semantic roles & 50–950 ramp

primary
#2C1D64
secondary
#879944
accent
#DE49BF
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2C1D64

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

Preview Lab → · Contrast checker → · Palette generator →

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