#2C146A#2C146A

#2C146A is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.137 H 287.2°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#2C146A
RGBrgb(44, 20, 106)
HSLhsl(257, 68%, 25%)
HSVhsv(257, 81%, 42%)
CMYKcmyk(58.5%, 81.1%, 0%, 58.4%)
CIE-LABlab(15.88, 34.88, -45.56)
CIE-LCHlch(15.88, 57.38, 307.44°)
OKLaboklab(29.05% 0.0405 -0.1311)
OKLCHoklch(29.05% 0.137 287.2)
XYZxyz(3.8896, 2.0762, 13.8287)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C146A #526A14
analogous
#14276A #2C146A #57146A
triadic
#2C146A #6A2C14 #146A2C
tetradic
#2C146A #6A1427 #526A14 #146A57
square
#2C146A #6A1427 #526A14 #146A57
split-complementary
#2C146A #6A5714 #276A14
monochromatic
#0B051A #170A37 #2C146A #411E9D #5727D1

Accessibility & contrast

On white

14.84
#2C146A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2C146A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C146A
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C146A#FFFFFF#000000##FFFFFF
##2C146A1.0014.841.4214.84
#FFFFFF14.841.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002568
Tritanopia (blue-blind)
#102D3E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2c146a;
/* rgb */ color: rgb(44, 20, 106);
/* oklch */ color: oklch(29.1% 0.137 287.2);
Tailwind
colors: {
  custom: {
    50: '#6e5596',
    500: '#2c146a',
    950: '#000000',
  },
}
SCSS
$custom: #2c146a;
$custom-light: #6e5596;
$custom-dark: #000000;
JSON
{
  "hex": "#2c146a",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 106
  },
  "hsl": {
    "h": 256.744,
    "s": 68.254,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29054,
    "c": 0.13724,
    "h": 287.2
  },
  "luminance": 0.02076
}

Semantic roles & 50–950 ramp

primary
#2C146A
secondary
#84A139
accent
#EB3DBA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2C146A

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

Preview Lab → · Contrast checker → · Palette generator →

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