#2C1575#2C1575

#2C1575 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.150 H 284.0°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#2C1575
RGBrgb(44, 21, 117)
HSLhsl(254, 70%, 27%)
HSVhsv(254, 82%, 46%)
CMYKcmyk(62.4%, 82.1%, 0%, 54.1%)
CIE-LABlab(17.25, 37.77, -50.45)
CIE-LCHlch(17.25, 63.02, 306.82°)
OKLaboklab(30.37% 0.0362 -0.1454)
OKLCHoklch(30.37% 0.15 284)
XYZxyz(4.5168, 2.3559, 17.0429)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1575 #5E7515
analogous
#152E75 #2C1575 #5C1575
triadic
#2C1575 #752C15 #15752C
tetradic
#2C1575 #75152E #5E7515 #15755C
square
#2C1575 #75152E #5E7515 #15755C
split-complementary
#2C1575 #755C15 #2E7515
monochromatic
#0A051A #180C41 #2C1575 #401EA9 #552BD9

Accessibility & contrast

On white

14.27
#2C1575 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1575
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1575#FFFFFF#000000##FFFFFF
##2C15751.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D78
Deuteranopia (green-blind)
#002773
Tritanopia (blue-blind)
#003145
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2c1575;
/* rgb */ color: rgb(44, 21, 117);
/* oklch */ color: oklch(30.4% 0.150 284.0);
Tailwind
colors: {
  custom: {
    50: '#70569e',
    500: '#2c1575',
    950: '#000000',
  },
}
SCSS
$custom: #2c1575;
$custom-light: #70569e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1575",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 117
  },
  "hsl": {
    "h": 254.375,
    "s": 69.565,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30369,
    "c": 0.14987,
    "h": 284
  },
  "luminance": 0.02356
}

Semantic roles & 50–950 ramp

primary
#2C1575
secondary
#90AB3B
accent
#EC3BC2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1575

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

Preview Lab → · Contrast checker → · Palette generator →

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