#2C1989#2C1989

#2C1989 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.171 H 279.3°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#2C1989
RGBrgb(44, 25, 137)
HSLhsl(250, 69%, 32%)
HSVhsv(250, 82%, 54%)
CMYKcmyk(67.9%, 81.8%, 0%, 46.3%)
CIE-LABlab(20.19, 41.99, -58.31)
CIE-LCHlch(20.19, 71.86, 305.76°)
OKLaboklab(33.08% 0.0275 -0.1684)
OKLCHoklch(33.08% 0.171 279.3)
XYZxyz(5.9002, 3.0364, 23.9372)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1989 #768919
analogous
#193E89 #2C1989 #641989
triadic
#2C1989 #892C19 #19892C
tetradic
#2C1989 #89193E #768919 #198964
square
#2C1989 #89193E #768919 #198964
split-complementary
#2C1989 #896419 #3E8919
monochromatic
#0B0621 #1B1055 #2C1989 #3D22BD #5B40DC

Accessibility & contrast

On white

13.06
#2C1989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2C1989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1989
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1989#FFFFFF#000000##FFFFFF
##2C19891.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002C87
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2c1989;
/* rgb */ color: rgb(44, 25, 137);
/* oklch */ color: oklch(33.1% 0.171 279.3);
Tailwind
colors: {
  custom: {
    50: '#745aad',
    500: '#2c1989',
    950: '#000000',
  },
}
SCSS
$custom: #2c1989;
$custom-light: #745aad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1989",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 250.179,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33076,
    "c": 0.17063,
    "h": 279.3
  },
  "luminance": 0.03037
}

Semantic roles & 50–950 ramp

primary
#2C1989
secondary
#A7BC41
accent
#EC3CCE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1989

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

Preview Lab → · Contrast checker → · Palette generator →

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