#2C1974#2C1974

#2C1974 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.145 H 283.5°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#2C1974
RGBrgb(44, 25, 116)
HSLhsl(253, 65%, 28%)
HSVhsv(253, 78%, 45%)
CMYKcmyk(62.1%, 78.4%, 0%, 54.5%)
CIE-LABlab(17.88, 35.35, -48.77)
CIE-LCHlch(17.88, 60.24, 305.93°)
OKLaboklab(30.77% 0.0337 -0.1406)
OKLCHoklch(30.77% 0.145 283.5)
XYZxyz(4.5377, 2.4914, 16.7614)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1974 #617419
analogous
#193474 #2C1974 #591974
triadic
#2C1974 #742C19 #19742C
tetradic
#2C1974 #741934 #617419 #197459
square
#2C1974 #741934 #617419 #197459
split-complementary
#2C1974 #745919 #347419
monochromatic
#0A0519 #190E42 #2C1974 #3F24A6 #5534D3

Accessibility & contrast

On white

14.01
#2C1974 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2C1974 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1974
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1974#FFFFFF#000000##FFFFFF
##2C19741.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002972
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c1974;
/* rgb */ color: rgb(44, 25, 116);
/* oklch */ color: oklch(30.8% 0.145 283.5);
Tailwind
colors: {
  custom: {
    50: '#6f589d',
    500: '#2c1974',
    950: '#000000',
  },
}
SCSS
$custom: #2c1974;
$custom-light: #6f589d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1974",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 116
  },
  "hsl": {
    "h": 252.527,
    "s": 64.539,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30774,
    "c": 0.14456,
    "h": 283.5
  },
  "luminance": 0.02492
}

Semantic roles & 50–950 ramp

primary
#2C1974
secondary
#93A940
accent
#E840C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1974

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

Preview Lab → · Contrast checker → · Palette generator →

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