#2C1390#2C1390

#2C1390 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.3% C 0.184 H 278.7°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#2C1390
RGBrgb(44, 19, 144)
HSLhsl(252, 77%, 32%)
HSVhsv(252, 87%, 56%)
CMYKcmyk(69.4%, 86.8%, 0%, 43.5%)
CIE-LABlab(20.10, 46.79, -62.83)
CIE-LCHlch(20.10, 78.34, 306.67°)
OKLaboklab(33.26% 0.0279 -0.1814)
OKLCHoklch(33.26% 0.184 278.7)
XYZxyz(6.3040, 3.0143, 26.6298)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1390 #779013
analogous
#133990 #2C1390 #6B1390
triadic
#2C1390 #902C13 #13902C
tetradic
#2C1390 #901339 #779013 #13906B
square
#2C1390 #901339 #779013 #13906B
split-complementary
#2C1390 #906B13 #399013
monochromatic
#0B0524 #1B0C5A #2C1390 #3D1AC6 #5B39E5

Accessibility & contrast

On white

13.10
#2C1390 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2C1390 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1390
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1390#FFFFFF#000000##FFFFFF
##2C13901.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003593
Deuteranopia (green-blind)
#002B8E
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2c1390;
/* rgb */ color: rgb(44, 19, 144);
/* oklch */ color: oklch(33.3% 0.184 278.7);
Tailwind
colors: {
  custom: {
    50: '#7657b2',
    500: '#2c1390',
    950: '#000000',
  },
}
SCSS
$custom: #2c1390;
$custom-light: #7657b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1390",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 144
  },
  "hsl": {
    "h": 252,
    "s": 76.687,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33256,
    "c": 0.18355,
    "h": 278.7
  },
  "luminance": 0.03015
}

Semantic roles & 50–950 ramp

primary
#2C1390
secondary
#A8C43B
accent
#F335CD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2C1390

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

Preview Lab → · Contrast checker → · Palette generator →

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