#2D196B#2D196B

#2D196B is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.133 H 286.5°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#2D196B
RGBrgb(45, 25, 107)
HSLhsl(255, 62%, 26%)
HSVhsv(255, 77%, 42%)
CMYKcmyk(57.9%, 76.6%, 0%, 58%)
CIE-LABlab(17.06, 32.62, -44.28)
CIE-LCHlch(17.06, 55.00, 306.38°)
OKLaboklab(29.94% 0.0377 -0.1274)
OKLCHoklch(29.94% 0.133 286.5)
XYZxyz(4.0829, 2.3145, 14.1387)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D196B #576B19
analogous
#192E6B #2D196B #56196B
triadic
#2D196B #6B2D19 #196B2D
tetradic
#2D196B #6B192E #576B19 #196B56
square
#2D196B #6B192E #576B19 #196B56
split-complementary
#2D196B #6B5619 #2E6B19
monochromatic
#0A0619 #180D39 #2D196B #42259D #5730CE

Accessibility & contrast

On white

14.35
#2D196B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D196B
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D196B#FFFFFF#000000##FFFFFF
##2D196B1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6D
Deuteranopia (green-blind)
#002869
Tritanopia (blue-blind)
#122F40
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d196b;
/* rgb */ color: rgb(45, 25, 107);
/* oklch */ color: oklch(29.9% 0.133 286.5);
Tailwind
colors: {
  custom: {
    50: '#6e5896',
    500: '#2d196b',
    950: '#000000',
  },
}
SCSS
$custom: #2d196b;
$custom-light: #6e5896;
$custom-dark: #000000;
JSON
{
  "hex": "#2d196b",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 107
  },
  "hsl": {
    "h": 254.634,
    "s": 62.121,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29938,
    "c": 0.13284,
    "h": 286.5
  },
  "luminance": 0.02315
}

Semantic roles & 50–950 ramp

primary
#2D196B
secondary
#89A13F
accent
#E543BE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D196B

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

Preview Lab → · Contrast checker → · Palette generator →

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