#2C1773#2C1773

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

Color values

HEX#2C1773
RGBrgb(44, 23, 115)
HSLhsl(254, 67%, 27%)
HSVhsv(254, 80%, 45%)
CMYKcmyk(61.7%, 80%, 0%, 54.9%)
CIE-LABlab(17.39, 36.12, -48.93)
CIE-LCHlch(17.39, 60.81, 306.43°)
OKLaboklab(30.4% 0.0355 -0.141)
OKLCHoklch(30.4% 0.145 284.1)
XYZxyz(4.4387, 2.3858, 16.4429)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1773 #5E7317
analogous
#173073 #2C1773 #5A1773
triadic
#2C1773 #732C17 #17732C
tetradic
#2C1773 #731730 #5E7317 #17735A
square
#2C1773 #731730 #5E7317 #17735A
split-complementary
#2C1773 #735A17 #307317
monochromatic
#0A051A #180D40 #2C1773 #4021A6 #552FD5

Accessibility & contrast

On white

14.22
#2C1773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2C1773 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1773
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1773#FFFFFF#000000##FFFFFF
##2C17731.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D76
Deuteranopia (green-blind)
#002871
Tritanopia (blue-blind)
#013244
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2c1773;
/* rgb */ color: rgb(44, 23, 115);
/* oklch */ color: oklch(30.4% 0.145 284.1);
Tailwind
colors: {
  custom: {
    50: '#6f579c',
    500: '#2c1773',
    950: '#000000',
  },
}
SCSS
$custom: #2c1773;
$custom-light: #6f579c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1773",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 115
  },
  "hsl": {
    "h": 253.696,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30401,
    "c": 0.1454,
    "h": 284.1
  },
  "luminance": 0.02386
}

Semantic roles & 50–950 ramp

primary
#2C1773
secondary
#90A93D
accent
#EA3EC2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1773

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

Preview Lab → · Contrast checker → · Palette generator →

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