#2C1954#2C1954

#2C1954 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.6% C 0.102 H 293.4°. Best body text is #FFFFFF at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#2C1954
RGBrgb(44, 25, 84)
HSLhsl(259, 54%, 21%)
HSVhsv(259, 70%, 33%)
CMYKcmyk(47.6%, 70.2%, 0%, 67.1%)
CIE-LABlab(14.79, 25.04, -32.68)
CIE-LCHlch(14.79, 41.17, 307.46°)
OKLaboklab(27.63% 0.0405 -0.0934)
OKLCHoklch(27.63% 0.102 293.4)
XYZxyz(2.9861, 1.8707, 8.5895)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1954 #415419
analogous
#192454 #2C1954 #4A1954
triadic
#2C1954 #542C19 #19542C
tetradic
#2C1954 #541924 #415419 #19544A
square
#2C1954 #541924 #415419 #19544A
split-complementary
#2C1954 #544A19 #245419
monochromatic
#0C0718 #130B25 #2C1954 #452783 #5D35B2

Accessibility & contrast

On white

15.28
#2C1954 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1954
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1954#FFFFFF#000000##FFFFFF
##2C19541.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002656
Deuteranopia (green-blind)
#002453
Tritanopia (blue-blind)
#212734
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2c1954;
/* rgb */ color: rgb(44, 25, 84);
/* oklch */ color: oklch(27.6% 0.102 293.4);
Tailwind
colors: {
  custom: {
    50: '#695785',
    500: '#2c1954',
    950: '#000000',
  },
}
SCSS
$custom: #2c1954;
$custom-light: #695785;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1954",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 84
  },
  "hsl": {
    "h": 259.322,
    "s": 54.128,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27627,
    "c": 0.10177,
    "h": 293.4
  },
  "luminance": 0.01871
}

Semantic roles & 50–950 ramp

primary
#2C1954
secondary
#728A3E
accent
#DD4AAE
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2C1954

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

Preview Lab → · Contrast checker → · Palette generator →

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