#2D197C#2D197C

#2D197C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.154 H 282.3°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#2D197C
RGBrgb(45, 25, 124)
HSLhsl(252, 66%, 29%)
HSVhsv(252, 80%, 49%)
CMYKcmyk(63.7%, 79.8%, 0%, 51.4%)
CIE-LABlab(18.83, 38.03, -52.33)
CIE-LCHlch(18.83, 64.69, 306.01°)
OKLaboklab(31.73% 0.033 -0.1509)
OKLCHoklch(31.73% 0.154 282.3)
XYZxyz(5.0668, 2.7080, 19.3206)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D197C #687C19
analogous
#19377C #2D197C #5F197C
triadic
#2D197C #7C2D19 #197C2D
tetradic
#2D197C #7C1937 #687C19 #197C5F
square
#2D197C #7C1937 #687C19 #197C5F
split-complementary
#2D197C #7C5F19 #377C19
monochromatic
#090519 #1B0F49 #2D197C #3F23AF #5838D7

Accessibility & contrast

On white

13.62
#2D197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2D197C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D197C
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D197C#FFFFFF#000000##FFFFFF
##2D197C1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d197c;
/* rgb */ color: rgb(45, 25, 124);
/* oklch */ color: oklch(31.7% 0.154 282.3);
Tailwind
colors: {
  custom: {
    50: '#7159a3',
    500: '#2d197c',
    950: '#000000',
  },
}
SCSS
$custom: #2d197c;
$custom-light: #7159a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d197c",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 252.121,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31725,
    "c": 0.15449,
    "h": 282.3
  },
  "luminance": 0.02708
}

Semantic roles & 50–950 ramp

primary
#2D197C
secondary
#9AB040
accent
#E93EC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D197C

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

Preview Lab → · Contrast checker → · Palette generator →

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