#2C1173#2C1173

#2C1173 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.151 H 285.1°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#2C1173
RGBrgb(44, 17, 115)
HSLhsl(257, 74%, 26%)
HSVhsv(257, 85%, 45%)
CMYKcmyk(61.7%, 85.2%, 0%, 54.9%)
CIE-LABlab(16.37, 39.07, -50.61)
CIE-LCHlch(16.37, 63.93, 307.66°)
OKLaboklab(29.69% 0.0394 -0.1458)
OKLCHoklch(29.69% 0.151 285.1)
XYZxyz(4.3327, 2.1739, 16.4076)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1173 #587311
analogous
#112773 #2C1173 #5D1173
triadic
#2C1173 #732C11 #11732C
tetradic
#2C1173 #731127 #587311 #11735D
square
#2C1173 #731127 #587311 #11735D
split-complementary
#2C1173 #735D11 #277311
monochromatic
#0A041B #18093E #2C1173 #4019A8 #5521DE

Accessibility & contrast

On white

14.64
#2C1173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2C1173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1173
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1173#FFFFFF#000000##FFFFFF
##2C11731.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B76
Deuteranopia (green-blind)
#002671
Tritanopia (blue-blind)
#022F43
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c1173;
/* rgb */ color: rgb(44, 17, 115);
/* oklch */ color: oklch(29.7% 0.151 285.1);
Tailwind
colors: {
  custom: {
    50: '#70549c',
    500: '#2c1173',
    950: '#000000',
  },
}
SCSS
$custom: #2c1173;
$custom-light: #70549c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1173",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 256.531,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29693,
    "c": 0.15108,
    "h": 285.1
  },
  "luminance": 0.02174
}

Semantic roles & 50–950 ramp

primary
#2C1173
secondary
#8AAA36
accent
#F137BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1173

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

Preview Lab → · Contrast checker → · Palette generator →

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