#2C1952#2C1952

#2C1952 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.099 H 294.3°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#2C1952
RGBrgb(44, 25, 82)
HSLhsl(260, 53%, 21%)
HSVhsv(260, 70%, 32%)
CMYKcmyk(46.3%, 69.5%, 0%, 67.8%)
CIE-LABlab(14.62, 24.40, -31.60)
CIE-LCHlch(14.62, 39.93, 307.67°)
OKLaboklab(27.45% 0.0407 -0.0902)
OKLCHoklch(27.45% 0.099 294.3)
XYZxyz(2.9089, 1.8399, 8.1829)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1952 #3F5219
analogous
#192252 #2C1952 #481952
triadic
#2C1952 #522C19 #19522C
tetradic
#2C1952 #521922 #3F5219 #195248
square
#2C1952 #521922 #3F5219 #195248
split-complementary
#2C1952 #524819 #225219
monochromatic
#0D0717 #130B23 #2C1952 #452781 #5E36B0

Accessibility & contrast

On white

15.35
#2C1952 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2C1952 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1952
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1952#FFFFFF#000000##FFFFFF
##2C19521.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002554
Deuteranopia (green-blind)
#002451
Tritanopia (blue-blind)
#222632
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2c1952;
/* rgb */ color: rgb(44, 25, 82);
/* oklch */ color: oklch(27.5% 0.099 294.3);
Tailwind
colors: {
  custom: {
    50: '#695783',
    500: '#2c1952',
    950: '#000000',
  },
}
SCSS
$custom: #2c1952;
$custom-light: #695783;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1952",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 82
  },
  "hsl": {
    "h": 260,
    "s": 53.271,
    "l": 20.98
  },
  "oklch": {
    "l": 0.2745,
    "c": 0.09895,
    "h": 294.3
  },
  "luminance": 0.0184
}

Semantic roles & 50–950 ramp

primary
#2C1952
secondary
#70883E
accent
#DD4BAC
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #2C1952

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

Preview Lab → · Contrast checker → · Palette generator →

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