#2C197A#2C197A

#2C197A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.152 H 282.1°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#2C197A
RGBrgb(44, 25, 122)
HSLhsl(252, 66%, 29%)
HSVhsv(252, 80%, 48%)
CMYKcmyk(63.9%, 79.5%, 0%, 52.2%)
CIE-LABlab(18.52, 37.27, -51.57)
CIE-LCHlch(18.52, 63.63, 305.86°)
OKLaboklab(31.42% 0.032 -0.1487)
OKLCHoklch(31.42% 0.152 282.1)
XYZxyz(4.8981, 2.6355, 18.6592)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C197A #677A19
analogous
#19377A #2C197A #5D197A
triadic
#2C197A #7A2C19 #197A2C
tetradic
#2C197A #7A1937 #677A19 #197A5D
square
#2C197A #7A1937 #677A19 #197A5D
split-complementary
#2C197A #7A5D19 #377A19
monochromatic
#090519 #1A0F47 #2C197A #3E23AD #5637D6

Accessibility & contrast

On white

13.75
#2C197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2C197A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C197A
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C197A#FFFFFF#000000##FFFFFF
##2C197A1.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c197a;
/* rgb */ color: rgb(44, 25, 122);
/* oklch */ color: oklch(31.4% 0.152 282.1);
Tailwind
colors: {
  custom: {
    50: '#7059a1',
    500: '#2c197a',
    950: '#000000',
  },
}
SCSS
$custom: #2c197a;
$custom-light: #7059a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c197a",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 251.753,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31417,
    "c": 0.15215,
    "h": 282.1
  },
  "luminance": 0.02636
}

Semantic roles & 50–950 ramp

primary
#2C197A
secondary
#99AF40
accent
#E93FC8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2C197A

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

Preview Lab → · Contrast checker → · Palette generator →

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