#2C197F#2C197F

#2C197F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.158 H 281.1°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#2C197F
RGBrgb(44, 25, 127)
HSLhsl(251, 67%, 30%)
HSVhsv(251, 80%, 50%)
CMYKcmyk(65.4%, 80.3%, 0%, 50.2%)
CIE-LABlab(19.07, 38.86, -53.86)
CIE-LCHlch(19.07, 66.41, 305.81°)
OKLaboklab(31.96% 0.0306 -0.1554)
OKLCHoklch(31.96% 0.158 281.1)
XYZxyz(5.2159, 2.7626, 20.3329)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C197F #6C7F19
analogous
#19397F #2C197F #5F197F
triadic
#2C197F #7F2C19 #197F2C
tetradic
#2C197F #7F1939 #6C7F19 #197F5F
square
#2C197F #7F1939 #6C7F19 #197F5F
split-complementary
#2C197F #7F5F19 #397F19
monochromatic
#09051A #1A0F4C #2C197F #3E23B2 #583AD8

Accessibility & contrast

On white

13.53
#2C197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2C197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C197F
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C197F#FFFFFF#000000##FFFFFF
##2C197F1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2c197f;
/* rgb */ color: rgb(44, 25, 127);
/* oklch */ color: oklch(32.0% 0.158 281.1);
Tailwind
colors: {
  custom: {
    50: '#7159a5',
    500: '#2c197f',
    950: '#000000',
  },
}
SCSS
$custom: #2c197f;
$custom-light: #7159a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c197f",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 251.176,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31962,
    "c": 0.15838,
    "h": 281.1
  },
  "luminance": 0.02763
}

Semantic roles & 50–950 ramp

primary
#2C197F
secondary
#9EB341
accent
#EA3ECA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2C197F

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

Preview Lab → · Contrast checker → · Palette generator →

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