#2D196A#2D196A

#2D196A is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.132 H 286.8°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#2D196A
RGBrgb(45, 25, 106)
HSLhsl(255, 62%, 26%)
HSVhsv(255, 76%, 42%)
CMYKcmyk(57.5%, 76.4%, 0%, 58.4%)
CIE-LABlab(16.96, 32.30, -43.79)
CIE-LCHlch(16.96, 54.42, 306.41°)
OKLaboklab(29.84% 0.0379 -0.126)
OKLCHoklch(29.84% 0.132 286.8)
XYZxyz(4.0306, 2.2935, 13.8632)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D196A #566A19
analogous
#192D6A #2D196A #55196A
triadic
#2D196A #6A2D19 #196A2D
tetradic
#2D196A #6A192D #566A19 #196A55
square
#2D196A #6A192D #566A19 #196A55
split-complementary
#2D196A #6A5519 #2D6A19
monochromatic
#0B0619 #180D38 #2D196A #42259C #5730CD

Accessibility & contrast

On white

14.40
#2D196A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2D196A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D196A
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D196A#FFFFFF#000000##FFFFFF
##2D196A1.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6C
Deuteranopia (green-blind)
#002768
Tritanopia (blue-blind)
#132F40
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d196a;
/* rgb */ color: rgb(45, 25, 106);
/* oklch */ color: oklch(29.8% 0.132 286.8);
Tailwind
colors: {
  custom: {
    50: '#6e5895',
    500: '#2d196a',
    950: '#000000',
  },
}
SCSS
$custom: #2d196a;
$custom-light: #6e5895;
$custom-dark: #000000;
JSON
{
  "hex": "#2d196a",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 106
  },
  "hsl": {
    "h": 254.815,
    "s": 61.832,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29837,
    "c": 0.13154,
    "h": 286.8
  },
  "luminance": 0.02294
}

Semantic roles & 50–950 ramp

primary
#2D196A
secondary
#88A03F
accent
#E543BD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D196A

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

Preview Lab → · Contrast checker → · Palette generator →

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