#2C1190#2C1190

#2C1190 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 33.1% C 0.185 H 278.9°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#2C1190
RGBrgb(44, 17, 144)
HSLhsl(253, 79%, 32%)
HSVhsv(253, 88%, 56%)
CMYKcmyk(69.4%, 88.2%, 0%, 43.5%)
CIE-LABlab(19.84, 47.56, -63.26)
CIE-LCHlch(19.84, 79.15, 306.94°)
OKLaboklab(33.08% 0.0286 -0.1826)
OKLCHoklch(33.08% 0.185 278.9)
XYZxyz(6.2716, 2.9494, 26.6189)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1190 #759011
analogous
#113690 #2C1190 #6C1190
triadic
#2C1190 #902C11 #11902C
tetradic
#2C1190 #901136 #759011 #11906C
square
#2C1190 #901136 #759011 #11906C
split-complementary
#2C1190 #906C11 #369011
monochromatic
#0B0423 #1B0B59 #2C1190 #3D17C7 #5A34E7

Accessibility & contrast

On white

13.21
#2C1190 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2C1190 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1190
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1190#FFFFFF#000000##FFFFFF
##2C11901.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003493
Deuteranopia (green-blind)
#002B8E
Tritanopia (blue-blind)
#003B54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2c1190;
/* rgb */ color: rgb(44, 17, 144);
/* oklch */ color: oklch(33.1% 0.185 278.9);
Tailwind
colors: {
  custom: {
    50: '#7656b2',
    500: '#2c1190',
    950: '#000000',
  },
}
SCSS
$custom: #2c1190;
$custom-light: #7656b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1190",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 144
  },
  "hsl": {
    "h": 252.756,
    "s": 78.882,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33078,
    "c": 0.18487,
    "h": 278.9
  },
  "luminance": 0.0295
}

Semantic roles & 50–950 ramp

primary
#2C1190
secondary
#A7C439
accent
#F532CC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2C1190

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

Preview Lab → · Contrast checker → · Palette generator →

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