#2C1A85#2C1A85

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

Color values

HEX#2C1A85
RGBrgb(44, 26, 133)
HSLhsl(250, 67%, 31%)
HSVhsv(250, 80%, 52%)
CMYKcmyk(66.9%, 80.5%, 0%, 47.8%)
CIE-LABlab(19.91, 40.23, -56.26)
CIE-LCHlch(19.91, 69.16, 305.57°)
OKLaboklab(32.75% 0.0282 -0.1624)
OKLCHoklch(32.75% 0.165 279.8)
XYZxyz(5.6404, 2.9673, 22.4613)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1A85 #73851A
analogous
#1A3D85 #2C1A85 #611A85
triadic
#2C1A85 #852C1A #1A852C
tetradic
#2C1A85 #851A3D #73851A #1A8561
square
#2C1A85 #851A3D #73851A #1A8561
split-complementary
#2C1A85 #85611A #3D851A
monochromatic
#0A061F #1B1052 #2C1A85 #3D24B8 #5A40DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2C1A85#FFFFFF#000000##FFFFFF
##2C1A851.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)
#003488
Deuteranopia (green-blind)
#002C83
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2c1a85;
/* rgb */ color: rgb(44, 26, 133);
/* oklch */ color: oklch(32.8% 0.165 279.8);
Tailwind
colors: {
  custom: {
    50: '#735aaa',
    500: '#2c1a85',
    950: '#000000',
  },
}
SCSS
$custom: #2c1a85;
$custom-light: #735aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1a85",
  "rgb": {
    "r": 44,
    "g": 26,
    "b": 133
  },
  "hsl": {
    "h": 250.093,
    "s": 67.296,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3275,
    "c": 0.16484,
    "h": 279.8
  },
  "luminance": 0.02968
}

Semantic roles & 50–950 ramp

primary
#2C1A85
secondary
#A5B842
accent
#EA3ECD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1A85

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

Preview Lab → · Contrast checker → · Palette generator →

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