#2D197A#2D197A

#2D197A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.152 H 282.8°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#2D197A
RGBrgb(45, 25, 122)
HSLhsl(252, 66%, 29%)
HSVhsv(252, 80%, 48%)
CMYKcmyk(63.1%, 79.5%, 0%, 52.2%)
CIE-LABlab(18.62, 37.40, -51.41)
CIE-LCHlch(18.62, 63.57, 306.04°)
OKLaboklab(31.51% 0.0336 -0.1482)
OKLCHoklch(31.51% 0.152 282.8)
XYZxyz(4.9416, 2.6579, 18.6612)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D197A #667A19
analogous
#19367A #2D197A #5E197A
triadic
#2D197A #7A2D19 #197A2D
tetradic
#2D197A #7A1936 #667A19 #197A5E
square
#2D197A #7A1936 #667A19 #197A5E
split-complementary
#2D197A #7A5E19 #367A19
monochromatic
#090519 #1A0F47 #2D197A #4023AD #5837D6

Accessibility & contrast

On white

13.71
#2D197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2D197A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D197A
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D197A#FFFFFF#000000##FFFFFF
##2D197A1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d197a;
/* rgb */ color: rgb(45, 25, 122);
/* oklch */ color: oklch(31.5% 0.152 282.8);
Tailwind
colors: {
  custom: {
    50: '#7159a1',
    500: '#2d197a',
    950: '#000000',
  },
}
SCSS
$custom: #2d197a;
$custom-light: #7159a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d197a",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 252.371,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31509,
    "c": 0.15199,
    "h": 282.8
  },
  "luminance": 0.02658
}

Semantic roles & 50–950 ramp

primary
#2D197A
secondary
#98AF40
accent
#E93FC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2D197A

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

Preview Lab → · Contrast checker → · Palette generator →

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