#2D198B#2D198B

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

Color values

HEX#2D198B
RGBrgb(45, 25, 139)
HSLhsl(251, 70%, 32%)
HSVhsv(251, 82%, 55%)
CMYKcmyk(67.6%, 82%, 0%, 45.5%)
CIE-LABlab(20.51, 42.71, -59.04)
CIE-LCHlch(20.51, 72.87, 305.88°)
OKLaboklab(33.39% 0.0285 -0.1705)
OKLCHoklch(33.39% 0.173 279.5)
XYZxyz(6.0885, 3.1167, 24.7018)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D198B #778B19
analogous
#193E8B #2D198B #66198B
triadic
#2D198B #8B2D19 #198B2D
tetradic
#2D198B #8B193E #778B19 #198B66
square
#2D198B #8B193E #778B19 #198B66
split-complementary
#2D198B #8B6619 #3E8B19
monochromatic
#0B0623 #1C1057 #2D198B #3E22BF #5D41DD

Accessibility & contrast

On white

12.94
#2D198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D198B
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D198B#FFFFFF#000000##FFFFFF
##2D198B1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d198b;
/* rgb */ color: rgb(45, 25, 139);
/* oklch */ color: oklch(33.4% 0.173 279.5);
Tailwind
colors: {
  custom: {
    50: '#745aae',
    500: '#2d198b',
    950: '#000000',
  },
}
SCSS
$custom: #2d198b;
$custom-light: #745aae;
$custom-dark: #000000;
JSON
{
  "hex": "#2d198b",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 250.526,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33385,
    "c": 0.17283,
    "h": 279.5
  },
  "luminance": 0.03117
}

Semantic roles & 50–950 ramp

primary
#2D198B
secondary
#A8BE42
accent
#EC3BCD
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D198B

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

Preview Lab → · Contrast checker → · Palette generator →

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