#2C1A74#2C1A74

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

Color values

HEX#2C1A74
RGBrgb(44, 26, 116)
HSLhsl(252, 63%, 28%)
HSVhsv(252, 78%, 45%)
CMYKcmyk(62.1%, 77.6%, 0%, 54.5%)
CIE-LABlab(18.08, 34.80, -48.45)
CIE-LCHlch(18.08, 59.65, 305.69°)
OKLaboklab(30.91% 0.0329 -0.1396)
OKLCHoklch(30.91% 0.143 283.3)
XYZxyz(4.5595, 2.5349, 16.7686)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1A74 #62741A
analogous
#1A3574 #2C1A74 #591A74
triadic
#2C1A74 #742C1A #1A742C
tetradic
#2C1A74 #741A35 #62741A #1A7459
square
#2C1A74 #741A35 #62741A #1A7459
split-complementary
#2C1A74 #74591A #35741A
monochromatic
#090619 #190F42 #2C1A74 #3F25A6 #5636D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2C1A74#FFFFFF#000000##FFFFFF
##2C1A741.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)
#002F77
Deuteranopia (green-blind)
#002972
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c1a74;
/* rgb */ color: rgb(44, 26, 116);
/* oklch */ color: oklch(30.9% 0.143 283.3);
Tailwind
colors: {
  custom: {
    50: '#6f599d',
    500: '#2c1a74',
    950: '#000000',
  },
}
SCSS
$custom: #2c1a74;
$custom-light: #6f599d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1a74",
  "rgb": {
    "r": 44,
    "g": 26,
    "b": 116
  },
  "hsl": {
    "h": 252,
    "s": 63.38,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30912,
    "c": 0.14347,
    "h": 283.3
  },
  "luminance": 0.02535
}

Semantic roles & 50–950 ramp

primary
#2C1A74
secondary
#94A941
accent
#E641C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1A74

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

Preview Lab → · Contrast checker → · Palette generator →

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