#2D198C#2D198C

#2D198C is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.174 H 279.3°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#2D198C
RGBrgb(45, 25, 140)
HSLhsl(250, 70%, 32%)
HSVhsv(250, 82%, 55%)
CMYKcmyk(67.9%, 82.1%, 0%, 45.1%)
CIE-LABlab(20.62, 43.02, -59.47)
CIE-LCHlch(20.62, 73.40, 305.88°)
OKLaboklab(33.5% 0.0282 -0.1717)
OKLCHoklch(33.5% 0.174 279.3)
XYZxyz(6.1619, 3.1461, 25.0884)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D198C #788C19
analogous
#193E8C #2D198C #67198C
triadic
#2D198C #8C2D19 #198C2D
tetradic
#2D198C #8C193E #788C19 #198C67
square
#2D198C #8C193E #788C19 #198C67
split-complementary
#2D198C #8C6719 #3E8C19
monochromatic
#0C0624 #1C1058 #2D198C #3E22C0 #5D42DD

Accessibility & contrast

On white

12.89
#2D198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2D198C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D198C
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D198C#FFFFFF#000000##FFFFFF
##2D198C1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368F
Deuteranopia (green-blind)
#002D8A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d198c;
/* rgb */ color: rgb(45, 25, 140);
/* oklch */ color: oklch(33.5% 0.174 279.3);
Tailwind
colors: {
  custom: {
    50: '#755aaf',
    500: '#2d198c',
    950: '#000000',
  },
}
SCSS
$custom: #2d198c;
$custom-light: #755aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d198c",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 250.435,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33497,
    "c": 0.17403,
    "h": 279.3
  },
  "luminance": 0.03147
}

Semantic roles & 50–950 ramp

primary
#2D198C
secondary
#A9BE43
accent
#ED3BCE
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #2D198C

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

Preview Lab → · Contrast checker → · Palette generator →

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