#2C1888#2C1888

#2C1888 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.170 H 279.6°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#2C1888
RGBrgb(44, 24, 136)
HSLhsl(251, 70%, 31%)
HSVhsv(251, 82%, 53%)
CMYKcmyk(67.6%, 82.4%, 0%, 46.7%)
CIE-LABlab(19.91, 42.17, -58.15)
CIE-LCHlch(19.91, 71.83, 305.95°)
OKLaboklab(32.85% 0.0284 -0.1679)
OKLCHoklch(32.85% 0.17 279.6)
XYZxyz(5.8079, 2.9658, 23.5542)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1888 #748818
analogous
#183C88 #2C1888 #641888
triadic
#2C1888 #882C18 #18882C
tetradic
#2C1888 #88183C #748818 #188864
square
#2C1888 #88183C #748818 #188864
split-complementary
#2C1888 #886418 #3C8818
monochromatic
#0A0620 #1B0F54 #2C1888 #3D21BC #5A3EDD

Accessibility & contrast

On white

13.18
#2C1888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1888
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1888#FFFFFF#000000##FFFFFF
##2C18881.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348B
Deuteranopia (green-blind)
#002C86
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2c1888;
/* rgb */ color: rgb(44, 24, 136);
/* oklch */ color: oklch(32.8% 0.170 279.6);
Tailwind
colors: {
  custom: {
    50: '#7359ac',
    500: '#2c1888',
    950: '#000000',
  },
}
SCSS
$custom: #2c1888;
$custom-light: #7359ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1888",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 136
  },
  "hsl": {
    "h": 250.714,
    "s": 70,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32846,
    "c": 0.17029,
    "h": 279.6
  },
  "luminance": 0.02966
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C1888

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

Preview Lab → · Contrast checker → · Palette generator →

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