#2D196E#2D196E

#2D196E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.137 H 285.7°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#2D196E
RGBrgb(45, 25, 110)
HSLhsl(254, 63%, 26%)
HSVhsv(254, 77%, 43%)
CMYKcmyk(59.1%, 77.3%, 0%, 56.9%)
CIE-LABlab(17.36, 33.58, -45.74)
CIE-LCHlch(17.36, 56.74, 306.28°)
OKLaboklab(30.25% 0.0369 -0.1317)
OKLCHoklch(30.25% 0.137 285.7)
XYZxyz(4.2434, 2.3787, 14.9844)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D196E #5A6E19
analogous
#19306E #2D196E #58196E
triadic
#2D196E #6E2D19 #196E2D
tetradic
#2D196E #6E1930 #5A6E19 #196E58
square
#2D196E #6E1930 #5A6E19 #196E58
split-complementary
#2D196E #6E5819 #306E19
monochromatic
#0A0619 #190E3C #2D196E #4124A0 #5731D0

Accessibility & contrast

On white

14.23
#2D196E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2D196E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D196E
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D196E#FFFFFF#000000##FFFFFF
##2D196E1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D70
Deuteranopia (green-blind)
#00286C
Tritanopia (blue-blind)
#0E3042
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d196e;
/* rgb */ color: rgb(45, 25, 110);
/* oklch */ color: oklch(30.2% 0.137 285.7);
Tailwind
colors: {
  custom: {
    50: '#6e5898',
    500: '#2d196e',
    950: '#000000',
  },
}
SCSS
$custom: #2d196e;
$custom-light: #6e5898;
$custom-dark: #000000;
JSON
{
  "hex": "#2d196e",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 110
  },
  "hsl": {
    "h": 254.118,
    "s": 62.963,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30245,
    "c": 0.13673,
    "h": 285.7
  },
  "luminance": 0.02379
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D196E

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

Preview Lab → · Contrast checker → · Palette generator →

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