#2C1574#2C1574

#2C1574 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.149 H 284.2°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#2C1574
RGBrgb(44, 21, 116)
HSLhsl(255, 69%, 27%)
HSVhsv(255, 82%, 45%)
CMYKcmyk(62.1%, 81.9%, 0%, 54.5%)
CIE-LABlab(17.14, 37.46, -49.99)
CIE-LCHlch(17.14, 62.47, 306.85°)
OKLaboklab(30.26% 0.0366 -0.1441)
OKLCHoklch(30.26% 0.149 284.2)
XYZxyz(4.4583, 2.3325, 16.7349)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1574 #5D7415
analogous
#152E74 #2C1574 #5C1574
triadic
#2C1574 #742C15 #15742C
tetradic
#2C1574 #74152E #5D7415 #15745C
square
#2C1574 #74152E #5D7415 #15745C
split-complementary
#2C1574 #745C15 #2E7415
monochromatic
#0A051A #180C40 #2C1574 #401EA8 #552BD9

Accessibility & contrast

On white

14.32
#2C1574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2C1574 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1574
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1574#FFFFFF#000000##FFFFFF
##2C15741.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.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: #2c1574;
/* rgb */ color: rgb(44, 21, 116);
/* oklch */ color: oklch(30.3% 0.149 284.2);
Tailwind
colors: {
  custom: {
    50: '#6f569d',
    500: '#2c1574',
    950: '#000000',
  },
}
SCSS
$custom: #2c1574;
$custom-light: #6f569d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1574",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 116
  },
  "hsl": {
    "h": 254.526,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30259,
    "c": 0.14864,
    "h": 284.2
  },
  "luminance": 0.02333
}

Semantic roles & 50–950 ramp

primary
#2C1574
secondary
#8FAA3B
accent
#EC3CC1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1574

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

Preview Lab → · Contrast checker → · Palette generator →

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