#2C1790#2C1790

#2C1790 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.181 H 278.4°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#2C1790
RGBrgb(44, 23, 144)
HSLhsl(250, 72%, 33%)
HSVhsv(250, 84%, 56%)
CMYKcmyk(69.4%, 84%, 0%, 43.5%)
CIE-LABlab(20.68, 45.08, -61.87)
CIE-LCHlch(20.68, 76.55, 306.08°)
OKLaboklab(33.65% 0.0263 -0.1787)
OKLCHoklch(33.65% 0.181 278.4)
XYZxyz(6.3775, 3.1613, 26.6543)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1790 #7B9017
analogous
#173F90 #2C1790 #681790
triadic
#2C1790 #902C17 #17902C
tetradic
#2C1790 #90173F #7B9017 #179068
square
#2C1790 #90173F #7B9017 #179068
split-complementary
#2C1790 #906817 #3F9017
monochromatic
#0C0626 #1C0F5B #2C1790 #3C1FC5 #5D41E1

Accessibility & contrast

On white

12.86
#2C1790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2C1790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1790
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1790#FFFFFF#000000##FFFFFF
##2C17901.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003693
Deuteranopia (green-blind)
#002D8E
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2c1790;
/* rgb */ color: rgb(44, 23, 144);
/* oklch */ color: oklch(33.7% 0.181 278.4);
Tailwind
colors: {
  custom: {
    50: '#7559b2',
    500: '#2c1790',
    950: '#000000',
  },
}
SCSS
$custom: #2c1790;
$custom-light: #7559b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1790",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 250.413,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33653,
    "c": 0.18063,
    "h": 278.4
  },
  "luminance": 0.03162
}

Semantic roles & 50–950 ramp

primary
#2C1790
secondary
#ABC142
accent
#EF39CF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1790

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

Preview Lab → · Contrast checker → · Palette generator →

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