#2C1785#2C1785

#2C1785 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.168 H 280.3°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#2C1785
RGBrgb(44, 23, 133)
HSLhsl(251, 71%, 31%)
HSVhsv(251, 83%, 52%)
CMYKcmyk(66.9%, 82.7%, 0%, 47.8%)
CIE-LABlab(19.40, 41.73, -57.11)
CIE-LCHlch(19.40, 70.73, 306.15°)
OKLaboklab(32.39% 0.0299 -0.1648)
OKLCHoklch(32.39% 0.168 280.3)
XYZxyz(5.5774, 2.8413, 22.4403)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1785 #708517
analogous
#173985 #2C1785 #631785
triadic
#2C1785 #852C17 #17852C
tetradic
#2C1785 #851739 #708517 #178563
square
#2C1785 #851739 #708517 #178563
split-complementary
#2C1785 #856317 #398517
monochromatic
#09051D #1B0E51 #2C1785 #3D20B9 #593ADD

Accessibility & contrast

On white

13.39
#2C1785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2C1785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1785
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1785#FFFFFF#000000##FFFFFF
##2C17851.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003388
Deuteranopia (green-blind)
#002B83
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2c1785;
/* rgb */ color: rgb(44, 23, 133);
/* oklch */ color: oklch(32.4% 0.168 280.3);
Tailwind
colors: {
  custom: {
    50: '#7358aa',
    500: '#2c1785',
    950: '#000000',
  },
}
SCSS
$custom: #2c1785;
$custom-light: #7358aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1785",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 251.455,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32391,
    "c": 0.16753,
    "h": 280.3
  },
  "luminance": 0.02842
}

Semantic roles & 50–950 ramp

primary
#2C1785
secondary
#A2B93F
accent
#ED3BCB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2C1785

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

Preview Lab → · Contrast checker → · Palette generator →

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