#2D197F#2D197F

#2D197F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.158 H 281.7°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#2D197F
RGBrgb(45, 25, 127)
HSLhsl(252, 67%, 30%)
HSVhsv(252, 80%, 50%)
CMYKcmyk(64.6%, 80.3%, 0%, 50.2%)
CIE-LABlab(19.16, 38.97, -53.70)
CIE-LCHlch(19.16, 66.35, 305.97°)
OKLaboklab(32.05% 0.0321 -0.1549)
OKLCHoklch(32.05% 0.158 281.7)
XYZxyz(5.2594, 2.7851, 20.3350)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D197F #6B7F19
analogous
#19387F #2D197F #60197F
triadic
#2D197F #7F2D19 #197F2D
tetradic
#2D197F #7F1938 #6B7F19 #197F60
square
#2D197F #7F1938 #6B7F19 #197F60
split-complementary
#2D197F #7F6019 #387F19
monochromatic
#09051A #1B0F4C #2D197F #3F23B2 #593AD8

Accessibility & contrast

On white

13.49
#2D197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2D197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D197F
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D197F#FFFFFF#000000##FFFFFF
##2D197F1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d197f;
/* rgb */ color: rgb(45, 25, 127);
/* oklch */ color: oklch(32.1% 0.158 281.7);
Tailwind
colors: {
  custom: {
    50: '#7259a5',
    500: '#2d197f',
    950: '#000000',
  },
}
SCSS
$custom: #2d197f;
$custom-light: #7259a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d197f",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 251.765,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32051,
    "c": 0.1582,
    "h": 281.7
  },
  "luminance": 0.02785
}

Semantic roles & 50–950 ramp

primary
#2D197F
secondary
#9DB341
accent
#EA3EC8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D197F

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

Preview Lab → · Contrast checker → · Palette generator →

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