#2D197D#2D197D

#2D197D is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.156 H 282.1°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#2D197D
RGBrgb(45, 25, 125)
HSLhsl(252, 67%, 29%)
HSVhsv(252, 80%, 49%)
CMYKcmyk(64%, 80%, 0%, 51%)
CIE-LABlab(18.94, 38.34, -52.79)
CIE-LCHlch(18.94, 65.24, 305.99°)
OKLaboklab(31.83% 0.0327 -0.1522)
OKLCHoklch(31.83% 0.156 282.1)
XYZxyz(5.1303, 2.7335, 19.6553)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D197D #697D19
analogous
#19377D #2D197D #5F197D
triadic
#2D197D #7D2D19 #197D2D
tetradic
#2D197D #7D1937 #697D19 #197D5F
square
#2D197D #7D1937 #697D19 #197D5F
split-complementary
#2D197D #7D5F19 #377D19
monochromatic
#09051A #1B0F4A #2D197D #3F23B0 #5939D7

Accessibility & contrast

On white

13.58
#2D197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2D197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D197D
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D197D#FFFFFF#000000##FFFFFF
##2D197D1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003180
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d197d;
/* rgb */ color: rgb(45, 25, 125);
/* oklch */ color: oklch(31.8% 0.156 282.1);
Tailwind
colors: {
  custom: {
    50: '#7159a4',
    500: '#2d197d',
    950: '#000000',
  },
}
SCSS
$custom: #2d197d;
$custom-light: #7159a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d197d",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 252,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31833,
    "c": 0.15572,
    "h": 282.1
  },
  "luminance": 0.02734
}

Semantic roles & 50–950 ramp

primary
#2D197D
secondary
#9BB140
accent
#EA3EC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D197D

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

Preview Lab → · Contrast checker → · Palette generator →

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