#2C146D#2C146D

#2C146D is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.141 H 286.3°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#2C146D
RGBrgb(44, 20, 109)
HSLhsl(256, 69%, 25%)
HSVhsv(256, 82%, 43%)
CMYKcmyk(59.6%, 81.7%, 0%, 57.3%)
CIE-LABlab(16.20, 35.80, -46.99)
CIE-LCHlch(16.20, 59.08, 307.30°)
OKLaboklab(29.38% 0.0395 -0.1353)
OKLCHoklch(29.38% 0.141 286.3)
XYZxyz(4.0483, 2.1397, 14.6647)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C146D #556D14
analogous
#14286D #2C146D #58146D
triadic
#2C146D #6D2C14 #146D2C
tetradic
#2C146D #6D1428 #556D14 #146D58
square
#2C146D #6D1428 #556D14 #146D58
split-complementary
#2C146D #6D5814 #286D14
monochromatic
#0A051A #170B39 #2C146D #411DA1 #5627D4

Accessibility & contrast

On white

14.71
#2C146D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2C146D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C146D
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C146D#FFFFFF#000000##FFFFFF
##2C146D1.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6F
Deuteranopia (green-blind)
#00266B
Tritanopia (blue-blind)
#0C2E40
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2c146d;
/* rgb */ color: rgb(44, 20, 109);
/* oklch */ color: oklch(29.4% 0.141 286.3);
Tailwind
colors: {
  custom: {
    50: '#6e5598',
    500: '#2c146d',
    950: '#000000',
  },
}
SCSS
$custom: #2c146d;
$custom-light: #6e5598;
$custom-dark: #000000;
JSON
{
  "hex": "#2c146d",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 109
  },
  "hsl": {
    "h": 256.18,
    "s": 68.992,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29375,
    "c": 0.14097,
    "h": 286.3
  },
  "luminance": 0.0214
}

Semantic roles & 50–950 ramp

primary
#2C146D
secondary
#87A439
accent
#EC3CBC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C146D

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

Preview Lab → · Contrast checker → · Palette generator →

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