#2C197D#2C197D

#2C197D is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.156 H 281.5°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#2C197D
RGBrgb(44, 25, 125)
HSLhsl(251, 67%, 29%)
HSVhsv(251, 80%, 49%)
CMYKcmyk(64.8%, 80%, 0%, 51%)
CIE-LABlab(18.85, 38.22, -52.95)
CIE-LCHlch(18.85, 65.30, 305.82°)
OKLaboklab(31.74% 0.0311 -0.1528)
OKLCHoklch(31.74% 0.156 281.5)
XYZxyz(5.0868, 2.7110, 19.6533)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C197D #6A7D19
analogous
#19387D #2C197D #5E197D
triadic
#2C197D #7D2C19 #197D2C
tetradic
#2C197D #7D1938 #6A7D19 #197D5E
square
#2C197D #7D1938 #6A7D19 #197D5E
split-complementary
#2C197D #7D5E19 #387D19
monochromatic
#09051A #1A0F4A #2C197D #3E23B0 #5739D7

Accessibility & contrast

On white

13.62
#2C197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2C197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C197D
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C197D#FFFFFF#000000##FFFFFF
##2C197D1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003180
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2c197d;
/* rgb */ color: rgb(44, 25, 125);
/* oklch */ color: oklch(31.7% 0.156 281.5);
Tailwind
colors: {
  custom: {
    50: '#7159a4',
    500: '#2c197d',
    950: '#000000',
  },
}
SCSS
$custom: #2c197d;
$custom-light: #7159a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c197d",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 251.4,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31743,
    "c": 0.1559,
    "h": 281.5
  },
  "luminance": 0.02711
}

Semantic roles & 50–950 ramp

primary
#2C197D
secondary
#9CB140
accent
#EA3EC9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2C197D

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

Preview Lab → · Contrast checker → · Palette generator →

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