#2C1474#2C1474

#2C1474 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.150 H 284.4°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#2C1474
RGBrgb(44, 20, 116)
HSLhsl(255, 71%, 27%)
HSVhsv(255, 83%, 45%)
CMYKcmyk(62.1%, 82.8%, 0%, 54.5%)
CIE-LABlab(16.97, 37.96, -50.27)
CIE-LCHlch(16.97, 62.99, 307.06°)
OKLaboklab(30.14% 0.0372 -0.1449)
OKLCHoklch(30.14% 0.15 284.4)
XYZxyz(4.4403, 2.2965, 16.7289)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1474 #5C7414
analogous
#142C74 #2C1474 #5C1474
triadic
#2C1474 #742C14 #14742C
tetradic
#2C1474 #74142C #5C7414 #14745C
square
#2C1474 #74142C #5C7414 #14745C
split-complementary
#2C1474 #745C14 #2C7414
monochromatic
#0A051A #180B40 #2C1474 #401DA8 #5528DA

Accessibility & contrast

On white

14.39
#2C1474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2C1474 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1474
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1474#FFFFFF#000000##FFFFFF
##2C14741.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002772
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2c1474;
/* rgb */ color: rgb(44, 20, 116);
/* oklch */ color: oklch(30.1% 0.150 284.4);
Tailwind
colors: {
  custom: {
    50: '#70559d',
    500: '#2c1474',
    950: '#000000',
  },
}
SCSS
$custom: #2c1474;
$custom-light: #70559d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1474",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 116
  },
  "hsl": {
    "h": 255,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.3014,
    "c": 0.14959,
    "h": 284.4
  },
  "luminance": 0.02297
}

Semantic roles & 50–950 ramp

primary
#2C1474
secondary
#8EAA3A
accent
#ED3AC1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1474

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

Preview Lab → · Contrast checker → · Palette generator →

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