#2C1290#2C1290

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

Color values

HEX#2C1290
RGBrgb(44, 18, 144)
HSLhsl(252, 78%, 32%)
HSVhsv(252, 88%, 56%)
CMYKcmyk(69.4%, 87.5%, 0%, 43.5%)
CIE-LABlab(19.97, 47.18, -63.05)
CIE-LCHlch(19.97, 78.75, 306.81°)
OKLaboklab(33.17% 0.0283 -0.182)
OKLCHoklch(33.17% 0.184 278.8)
XYZxyz(6.2874, 2.9812, 26.6242)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1290 #769012
analogous
#123790 #2C1290 #6B1290
triadic
#2C1290 #902C12 #12902C
tetradic
#2C1290 #901237 #769012 #12906B
square
#2C1290 #901237 #769012 #12906B
split-complementary
#2C1290 #906B12 #379012
monochromatic
#0B0423 #1B0B5A #2C1290 #3D19C6 #5B36E6

Accessibility & contrast

On white

13.15
#2C1290 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1290
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1290#FFFFFF#000000##FFFFFF
##2C12901.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1290;
/* rgb */ color: rgb(44, 18, 144);
/* oklch */ color: oklch(33.2% 0.184 278.8);
Tailwind
colors: {
  custom: {
    50: '#7657b2',
    500: '#2c1290',
    950: '#000000',
  },
}
SCSS
$custom: #2c1290;
$custom-light: #7657b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1290",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 144
  },
  "hsl": {
    "h": 252.381,
    "s": 77.778,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33166,
    "c": 0.18422,
    "h": 278.8
  },
  "luminance": 0.02982
}

Semantic roles & 50–950 ramp

primary
#2C1290
secondary
#A7C43A
accent
#F434CD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2C1290

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

Preview Lab → · Contrast checker → · Palette generator →

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