#2C197C#2C197C

#2C197C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.155 H 281.7°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#2C197C
RGBrgb(44, 25, 124)
HSLhsl(252, 66%, 29%)
HSVhsv(252, 80%, 49%)
CMYKcmyk(64.5%, 79.8%, 0%, 51.4%)
CIE-LABlab(18.74, 37.90, -52.49)
CIE-LCHlch(18.74, 64.75, 305.83°)
OKLaboklab(31.63% 0.0314 -0.1514)
OKLCHoklch(31.63% 0.155 281.7)
XYZxyz(5.0233, 2.6856, 19.3185)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C197C #697C19
analogous
#19387C #2C197C #5E197C
triadic
#2C197C #7C2C19 #197C2C
tetradic
#2C197C #7C1938 #697C19 #197C5E
square
#2C197C #7C1938 #697C19 #197C5E
split-complementary
#2C197C #7C5E19 #387C19
monochromatic
#090519 #1A0F49 #2C197C #3E23AF #5738D7

Accessibility & contrast

On white

13.66
#2C197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C197C
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C197C#FFFFFF#000000##FFFFFF
##2C197C1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2c197c;
/* rgb */ color: rgb(44, 25, 124);
/* oklch */ color: oklch(31.6% 0.155 281.7);
Tailwind
colors: {
  custom: {
    50: '#7159a3',
    500: '#2c197c',
    950: '#000000',
  },
}
SCSS
$custom: #2c197c;
$custom-light: #7159a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c197c",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 251.515,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31634,
    "c": 0.15465,
    "h": 281.7
  },
  "luminance": 0.02686
}

Semantic roles & 50–950 ramp

primary
#2C197C
secondary
#9BB040
accent
#E93EC9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2C197C

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

Preview Lab → · Contrast checker → · Palette generator →

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