#2C1976#2C1976

#2C1976 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.147 H 283.0°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#2C1976
RGBrgb(44, 25, 118)
HSLhsl(252, 65%, 28%)
HSVhsv(252, 79%, 46%)
CMYKcmyk(62.7%, 78.8%, 0%, 53.7%)
CIE-LABlab(18.09, 35.99, -49.71)
CIE-LCHlch(18.09, 61.38, 305.90°)
OKLaboklab(30.99% 0.0332 -0.1433)
OKLCHoklch(30.99% 0.147 283)
XYZxyz(4.6553, 2.5384, 17.3807)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1976 #637619
analogous
#193476 #2C1976 #5A1976
triadic
#2C1976 #762C19 #19762C
tetradic
#2C1976 #761934 #637619 #19765A
square
#2C1976 #761934 #637619 #19765A
split-complementary
#2C1976 #765A19 #347619
monochromatic
#090519 #190E43 #2C1976 #3F24A8 #5635D4

Accessibility & contrast

On white

13.93
#2C1976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2C1976 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1976
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1976#FFFFFF#000000##FFFFFF
##2C19761.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002974
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c1976;
/* rgb */ color: rgb(44, 25, 118);
/* oklch */ color: oklch(31.0% 0.147 283.0);
Tailwind
colors: {
  custom: {
    50: '#6f589e',
    500: '#2c1976',
    950: '#000000',
  },
}
SCSS
$custom: #2c1976;
$custom-light: #6f589e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1976",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 118
  },
  "hsl": {
    "h": 252.258,
    "s": 65.035,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30987,
    "c": 0.1471,
    "h": 283
  },
  "luminance": 0.02539
}

Semantic roles & 50–950 ramp

primary
#2C1976
secondary
#95AB40
accent
#E840C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1976

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

Preview Lab → · Contrast checker → · Palette generator →

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