#2C198A#2C198A

#2C198A is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.172 H 279.1°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#2C198A
RGBrgb(44, 25, 138)
HSLhsl(250, 69%, 32%)
HSVhsv(250, 82%, 54%)
CMYKcmyk(68.1%, 81.9%, 0%, 45.9%)
CIE-LABlab(20.30, 42.30, -58.75)
CIE-LCHlch(20.30, 72.39, 305.75°)
OKLaboklab(33.19% 0.0272 -0.1697)
OKLCHoklch(33.19% 0.172 279.1)
XYZxyz(5.9723, 3.0652, 24.3167)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C198A #778A19
analogous
#193F8A #2C198A #64198A
triadic
#2C198A #8A2C19 #198A2C
tetradic
#2C198A #8A193F #778A19 #198A64
square
#2C198A #8A193F #778A19 #198A64
split-complementary
#2C198A #8A6419 #3F8A19
monochromatic
#0B0622 #1B1056 #2C198A #3D22BE #5B41DD

Accessibility & contrast

On white

13.02
#2C198A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2C198A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C198A
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C198A#FFFFFF#000000##FFFFFF
##2C198A1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358D
Deuteranopia (green-blind)
#002C88
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2c198a;
/* rgb */ color: rgb(44, 25, 138);
/* oklch */ color: oklch(33.2% 0.172 279.1);
Tailwind
colors: {
  custom: {
    50: '#745aad',
    500: '#2c198a',
    950: '#000000',
  },
}
SCSS
$custom: #2c198a;
$custom-light: #745aad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c198a",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 138
  },
  "hsl": {
    "h": 250.088,
    "s": 69.325,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33188,
    "c": 0.17183,
    "h": 279.1
  },
  "luminance": 0.03066
}

Semantic roles & 50–950 ramp

primary
#2C198A
secondary
#A8BD42
accent
#EC3CCE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C198A

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

Preview Lab → · Contrast checker → · Palette generator →

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