#2C1889#2C1889

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

Color values

HEX#2C1889
RGBrgb(44, 24, 137)
HSLhsl(251, 70%, 32%)
HSVhsv(251, 82%, 54%)
CMYKcmyk(67.9%, 82.5%, 0%, 46.3%)
CIE-LABlab(20.02, 42.48, -58.59)
CIE-LCHlch(20.02, 72.37, 305.94°)
OKLaboklab(32.96% 0.0281 -0.1692)
OKLCHoklch(32.96% 0.171 279.4)
XYZxyz(5.8793, 2.9944, 23.9302)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1889 #758918
analogous
#183D89 #2C1889 #651889
triadic
#2C1889 #892C18 #18892C
tetradic
#2C1889 #89183D #758918 #188965
square
#2C1889 #89183D #758918 #188965
split-complementary
#2C1889 #896518 #3D8918
monochromatic
#0B0621 #1B0F55 #2C1889 #3D21BD #5A3EDD

Accessibility & contrast

On white

13.13
#2C1889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1889
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1889#FFFFFF#000000##FFFFFF
##2C18891.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1889;
/* rgb */ color: rgb(44, 24, 137);
/* oklch */ color: oklch(33.0% 0.171 279.4);
Tailwind
colors: {
  custom: {
    50: '#7459ad',
    500: '#2c1889',
    950: '#000000',
  },
}
SCSS
$custom: #2c1889;
$custom-light: #7459ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1889",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 137
  },
  "hsl": {
    "h": 250.619,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32959,
    "c": 0.17149,
    "h": 279.4
  },
  "luminance": 0.02995
}

Semantic roles & 50–950 ramp

primary
#2C1889
secondary
#A7BD40
accent
#ED3BCD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1889

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

Preview Lab → · Contrast checker → · Palette generator →

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