#2D197E#2D197E

#2D197E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.157 H 281.9°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#2D197E
RGBrgb(45, 25, 126)
HSLhsl(252, 67%, 30%)
HSVhsv(252, 80%, 49%)
CMYKcmyk(64.3%, 80.2%, 0%, 50.6%)
CIE-LABlab(19.05, 38.66, -53.24)
CIE-LCHlch(19.05, 65.80, 305.98°)
OKLaboklab(31.94% 0.0324 -0.1536)
OKLCHoklch(31.94% 0.157 281.9)
XYZxyz(5.1945, 2.7591, 19.9935)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D197E #6A7E19
analogous
#19387E #2D197E #60197E
triadic
#2D197E #7E2D19 #197E2D
tetradic
#2D197E #7E1938 #6A7E19 #197E60
square
#2D197E #7E1938 #6A7E19 #197E60
split-complementary
#2D197E #7E6019 #387E19
monochromatic
#09051A #1B0F4B #2D197E #3F23B1 #593AD8

Accessibility & contrast

On white

13.53
#2D197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D197E
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D197E#FFFFFF#000000##FFFFFF
##2D197E1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d197e;
/* rgb */ color: rgb(45, 25, 126);
/* oklch */ color: oklch(31.9% 0.157 281.9);
Tailwind
colors: {
  custom: {
    50: '#7259a4',
    500: '#2d197e',
    950: '#000000',
  },
}
SCSS
$custom: #2d197e;
$custom-light: #7259a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d197e",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 251.881,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31942,
    "c": 0.15697,
    "h": 281.9
  },
  "luminance": 0.0276
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D197E

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

Preview Lab → · Contrast checker → · Palette generator →

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