#2C197B#2C197B

#2C197B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.153 H 281.9°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#2C197B
RGBrgb(44, 25, 123)
HSLhsl(252, 66%, 29%)
HSVhsv(252, 80%, 48%)
CMYKcmyk(64.2%, 79.7%, 0%, 51.8%)
CIE-LABlab(18.63, 37.59, -52.03)
CIE-LCHlch(18.63, 64.19, 305.84°)
OKLaboklab(31.53% 0.0317 -0.1501)
OKLCHoklch(31.53% 0.153 281.9)
XYZxyz(4.9604, 2.6604, 18.9872)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C197B #687B19
analogous
#19377B #2C197B #5D197B
triadic
#2C197B #7B2C19 #197B2C
tetradic
#2C197B #7B1937 #687B19 #197B5D
square
#2C197B #7B1937 #687B19 #197B5D
split-complementary
#2C197B #7B5D19 #377B19
monochromatic
#090519 #1A0F48 #2C197B #3E23AE #5738D7

Accessibility & contrast

On white

13.71
#2C197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C197B
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C197B#FFFFFF#000000##FFFFFF
##2C197B1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c197b;
/* rgb */ color: rgb(44, 25, 123);
/* oklch */ color: oklch(31.5% 0.153 281.9);
Tailwind
colors: {
  custom: {
    50: '#7159a2',
    500: '#2c197b',
    950: '#000000',
  },
}
SCSS
$custom: #2c197b;
$custom-light: #7159a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c197b",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 251.633,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31525,
    "c": 0.15341,
    "h": 281.9
  },
  "luminance": 0.02661
}

Semantic roles & 50–950 ramp

primary
#2C197B
secondary
#9AAF40
accent
#E93FC8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2C197B

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

Preview Lab → · Contrast checker → · Palette generator →

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