#2D196D#2D196D

#2D196D is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.1% C 0.135 H 285.9°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#2D196D
RGBrgb(45, 25, 109)
HSLhsl(254, 63%, 26%)
HSVhsv(254, 77%, 43%)
CMYKcmyk(58.7%, 77.1%, 0%, 57.3%)
CIE-LABlab(17.26, 33.26, -45.26)
CIE-LCHlch(17.26, 56.16, 306.31°)
OKLaboklab(30.14% 0.0372 -0.1302)
OKLCHoklch(30.14% 0.135 285.9)
XYZxyz(4.1893, 2.3570, 14.6992)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D196D #596D19
analogous
#192F6D #2D196D #57196D
triadic
#2D196D #6D2D19 #196D2D
tetradic
#2D196D #6D192F #596D19 #196D57
square
#2D196D #6D192F #596D19 #196D57
split-complementary
#2D196D #6D5719 #2F6D19
monochromatic
#0A0619 #180E3B #2D196D #42249F #5731D0

Accessibility & contrast

On white

14.27
#2D196D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2D196D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D196D
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D196D#FFFFFF#000000##FFFFFF
##2D196D1.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6F
Deuteranopia (green-blind)
#00286B
Tritanopia (blue-blind)
#0F3041
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d196d;
/* rgb */ color: rgb(45, 25, 109);
/* oklch */ color: oklch(30.1% 0.135 285.9);
Tailwind
colors: {
  custom: {
    50: '#6e5898',
    500: '#2d196d',
    950: '#000000',
  },
}
SCSS
$custom: #2d196d;
$custom-light: #6e5898;
$custom-dark: #000000;
JSON
{
  "hex": "#2d196d",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 109
  },
  "hsl": {
    "h": 254.286,
    "s": 62.687,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30142,
    "c": 0.13545,
    "h": 285.9
  },
  "luminance": 0.02357
}

Semantic roles & 50–950 ramp

primary
#2D196D
secondary
#8BA23F
accent
#E642BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D196D

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

Preview Lab → · Contrast checker → · Palette generator →

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