#2D197B#2D197B

#2D197B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.153 H 282.6°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#2D197B
RGBrgb(45, 25, 123)
HSLhsl(252, 66%, 29%)
HSVhsv(252, 80%, 48%)
CMYKcmyk(63.4%, 79.7%, 0%, 51.8%)
CIE-LABlab(18.73, 37.71, -51.87)
CIE-LCHlch(18.73, 64.13, 306.02°)
OKLaboklab(31.62% 0.0333 -0.1496)
OKLCHoklch(31.62% 0.153 282.6)
XYZxyz(5.0039, 2.6829, 18.9892)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D197B #677B19
analogous
#19367B #2D197B #5E197B
triadic
#2D197B #7B2D19 #197B2D
tetradic
#2D197B #7B1936 #677B19 #197B5E
square
#2D197B #7B1936 #677B19 #197B5E
split-complementary
#2D197B #7B5E19 #367B19
monochromatic
#090519 #1A0F48 #2D197B #4023AE #5838D7

Accessibility & contrast

On white

13.67
#2D197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D197B
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D197B#FFFFFF#000000##FFFFFF
##2D197B1.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d197b;
/* rgb */ color: rgb(45, 25, 123);
/* oklch */ color: oklch(31.6% 0.153 282.6);
Tailwind
colors: {
  custom: {
    50: '#7159a2',
    500: '#2d197b',
    950: '#000000',
  },
}
SCSS
$custom: #2d197b;
$custom-light: #7159a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d197b",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 252.245,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31617,
    "c": 0.15324,
    "h": 282.6
  },
  "luminance": 0.02683
}

Semantic roles & 50–950 ramp

primary
#2D197B
secondary
#99AF40
accent
#E93FC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D197B

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

Preview Lab → · Contrast checker → · Palette generator →

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