#2D198A#2D198A

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

Color values

HEX#2D198A
RGBrgb(45, 25, 138)
HSLhsl(251, 69%, 32%)
HSVhsv(251, 82%, 54%)
CMYKcmyk(67.4%, 81.9%, 0%, 45.9%)
CIE-LABlab(20.39, 42.40, -58.60)
CIE-LCHlch(20.39, 72.33, 305.89°)
OKLaboklab(33.27% 0.0288 -0.1692)
OKLCHoklch(33.27% 0.172 279.7)
XYZxyz(6.0158, 3.0876, 24.3188)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D198A #768A19
analogous
#193E8A #2D198A #65198A
triadic
#2D198A #8A2D19 #198A2D
tetradic
#2D198A #8A193E #768A19 #198A65
square
#2D198A #8A193E #768A19 #198A65
split-complementary
#2D198A #8A6519 #3E8A19
monochromatic
#0B0622 #1C1056 #2D198A #3E22BE #5C41DD

Accessibility & contrast

On white

12.98
#2D198A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D198A
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D198A#FFFFFF#000000##FFFFFF
##2D198A1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d198a;
/* rgb */ color: rgb(45, 25, 138);
/* oklch */ color: oklch(33.3% 0.172 279.7);
Tailwind
colors: {
  custom: {
    50: '#745aad',
    500: '#2d198a',
    950: '#000000',
  },
}
SCSS
$custom: #2d198a;
$custom-light: #745aad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d198a",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 138
  },
  "hsl": {
    "h": 250.619,
    "s": 69.325,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33272,
    "c": 0.17163,
    "h": 279.7
  },
  "luminance": 0.03088
}

Semantic roles & 50–950 ramp

primary
#2D198A
secondary
#A7BD42
accent
#EC3CCD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D198A

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

Preview Lab → · Contrast checker → · Palette generator →

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