#2C198B#2C198B

#2C198B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.173 H 279.0°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#2C198B
RGBrgb(44, 25, 139)
HSLhsl(250, 70%, 32%)
HSVhsv(250, 82%, 55%)
CMYKcmyk(68.3%, 82%, 0%, 45.5%)
CIE-LABlab(20.42, 42.61, -59.19)
CIE-LCHlch(20.42, 72.93, 305.75°)
OKLaboklab(33.3% 0.0269 -0.1709)
OKLCHoklch(33.3% 0.173 279)
XYZxyz(6.0450, 3.0943, 24.6998)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C198B #788B19
analogous
#193F8B #2C198B #65198B
triadic
#2C198B #8B2C19 #198B2C
tetradic
#2C198B #8B193F #788B19 #198B65
square
#2C198B #8B193F #788B19 #198B65
split-complementary
#2C198B #8B6519 #3F8B19
monochromatic
#0B0623 #1C1057 #2C198B #3C22BF #5B41DD

Accessibility & contrast

On white

12.97
#2C198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2C198B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C198B
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C198B#FFFFFF#000000##FFFFFF
##2C198B1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c198b;
/* rgb */ color: rgb(44, 25, 139);
/* oklch */ color: oklch(33.3% 0.173 279.0);
Tailwind
colors: {
  custom: {
    50: '#745aae',
    500: '#2c198b',
    950: '#000000',
  },
}
SCSS
$custom: #2c198b;
$custom-light: #745aae;
$custom-dark: #000000;
JSON
{
  "hex": "#2c198b",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 250,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33302,
    "c": 0.17304,
    "h": 279
  },
  "luminance": 0.03095
}

Semantic roles & 50–950 ramp

primary
#2C198B
secondary
#A9BE42
accent
#EC3BCF
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C198B

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

Preview Lab → · Contrast checker → · Palette generator →

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