#2C146C#2C146C

#2C146C is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.140 H 286.6°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#2C146C
RGBrgb(44, 20, 108)
HSLhsl(256, 69%, 25%)
HSVhsv(256, 81%, 42%)
CMYKcmyk(59.3%, 81.5%, 0%, 57.6%)
CIE-LABlab(16.10, 35.50, -46.52)
CIE-LCHlch(16.10, 58.52, 307.35°)
OKLaboklab(29.27% 0.0398 -0.1339)
OKLCHoklch(29.27% 0.14 286.6)
XYZxyz(3.9948, 2.1183, 14.3828)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C146C #546C14
analogous
#14286C #2C146C #58146C
triadic
#2C146C #6C2C14 #146C2C
tetradic
#2C146C #6C1428 #546C14 #146C58
square
#2C146C #6C1428 #546C14 #146C58
split-complementary
#2C146C #6C5814 #286C14
monochromatic
#0B051A #170A38 #2C146C #411EA0 #5627D3

Accessibility & contrast

On white

14.75
#2C146C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C146C
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C146C#FFFFFF#000000##FFFFFF
##2C146C1.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00256A
Tritanopia (blue-blind)
#0E2D40
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2c146c;
/* rgb */ color: rgb(44, 20, 108);
/* oklch */ color: oklch(29.3% 0.140 286.6);
Tailwind
colors: {
  custom: {
    50: '#6e5597',
    500: '#2c146c',
    950: '#000000',
  },
}
SCSS
$custom: #2c146c;
$custom-light: #6e5597;
$custom-dark: #000000;
JSON
{
  "hex": "#2c146c",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 108
  },
  "hsl": {
    "h": 256.364,
    "s": 68.75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29268,
    "c": 0.13973,
    "h": 286.6
  },
  "luminance": 0.02118
}

Semantic roles & 50–950 ramp

primary
#2C146C
secondary
#86A339
accent
#EC3CBC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C146C

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

Preview Lab → · Contrast checker → · Palette generator →

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