#2C196D#2C196D

#2C196D is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.136 H 285.2°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#2C196D
RGBrgb(44, 25, 109)
HSLhsl(254, 63%, 26%)
HSVhsv(254, 77%, 43%)
CMYKcmyk(59.6%, 77.1%, 0%, 57.3%)
CIE-LABlab(17.15, 33.10, -45.43)
CIE-LCHlch(17.15, 56.21, 306.08°)
OKLaboklab(30.04% 0.0356 -0.1308)
OKLCHoklch(30.04% 0.136 285.2)
XYZxyz(4.1458, 2.3346, 14.6972)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C196D #5A6D19
analogous
#19306D #2C196D #56196D
triadic
#2C196D #6D2C19 #196D2C
tetradic
#2C196D #6D1930 #5A6D19 #196D56
square
#2C196D #6D1930 #5A6D19 #196D56
split-complementary
#2C196D #6D5619 #306D19
monochromatic
#0A0619 #180E3B #2C196D #40249F #5531D0

Accessibility & contrast

On white

14.31
#2C196D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2C196D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C196D
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C196D#FFFFFF#000000##FFFFFF
##2C196D1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6F
Deuteranopia (green-blind)
#00286B
Tritanopia (blue-blind)
#0C3041
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2c196d;
/* rgb */ color: rgb(44, 25, 109);
/* oklch */ color: oklch(30.0% 0.136 285.2);
Tailwind
colors: {
  custom: {
    50: '#6e5898',
    500: '#2c196d',
    950: '#000000',
  },
}
SCSS
$custom: #2c196d;
$custom-light: #6e5898;
$custom-dark: #000000;
JSON
{
  "hex": "#2c196d",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 109
  },
  "hsl": {
    "h": 253.571,
    "s": 62.687,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30042,
    "c": 0.13554,
    "h": 285.2
  },
  "luminance": 0.02335
}

Semantic roles & 50–950 ramp

primary
#2C196D
secondary
#8CA23F
accent
#E642C1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #2C196D

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

Preview Lab → · Contrast checker → · Palette generator →

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