#2C197E#2C197E

#2C197E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.157 H 281.3°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#2C197E
RGBrgb(44, 25, 126)
HSLhsl(251, 67%, 30%)
HSVhsv(251, 80%, 49%)
CMYKcmyk(65.1%, 80.2%, 0%, 50.6%)
CIE-LABlab(18.96, 38.54, -53.40)
CIE-LCHlch(18.96, 65.86, 305.82°)
OKLaboklab(31.85% 0.0309 -0.1541)
OKLCHoklch(31.85% 0.157 281.3)
XYZxyz(5.1510, 2.7367, 19.9914)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C197E #6B7E19
analogous
#19397E #2C197E #5F197E
triadic
#2C197E #7E2C19 #197E2C
tetradic
#2C197E #7E1939 #6B7E19 #197E5F
square
#2C197E #7E1939 #6B7E19 #197E5F
split-complementary
#2C197E #7E5F19 #397E19
monochromatic
#09051A #1A0F4B #2C197E #3E23B1 #573AD8

Accessibility & contrast

On white

13.57
#2C197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C197E
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C197E#FFFFFF#000000##FFFFFF
##2C197E1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2c197e;
/* rgb */ color: rgb(44, 25, 126);
/* oklch */ color: oklch(31.9% 0.157 281.3);
Tailwind
colors: {
  custom: {
    50: '#7159a4',
    500: '#2c197e',
    950: '#000000',
  },
}
SCSS
$custom: #2c197e;
$custom-light: #7159a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c197e",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 251.287,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31852,
    "c": 0.15714,
    "h": 281.3
  },
  "luminance": 0.02737
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C197E

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

Preview Lab → · Contrast checker → · Palette generator →

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