#2D196C#2D196C

#2D196C is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.134 H 286.2°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#2D196C
RGBrgb(45, 25, 108)
HSLhsl(254, 62%, 26%)
HSVhsv(254, 77%, 42%)
CMYKcmyk(58.3%, 76.9%, 0%, 57.6%)
CIE-LABlab(17.16, 32.94, -44.77)
CIE-LCHlch(17.16, 55.58, 306.35°)
OKLaboklab(30.04% 0.0374 -0.1288)
OKLCHoklch(30.04% 0.134 286.2)
XYZxyz(4.1358, 2.3356, 14.4173)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D196C #586C19
analogous
#192E6C #2D196C #56196C
triadic
#2D196C #6C2D19 #196C2D
tetradic
#2D196C #6C192E #586C19 #196C56
square
#2D196C #6C192E #586C19 #196C56
split-complementary
#2D196C #6C5619 #2E6C19
monochromatic
#0A0619 #180D3A #2D196C #42259E #5730CF

Accessibility & contrast

On white

14.31
#2D196C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D196C
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D196C#FFFFFF#000000##FFFFFF
##2D196C1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6E
Deuteranopia (green-blind)
#00286A
Tritanopia (blue-blind)
#103041
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d196c;
/* rgb */ color: rgb(45, 25, 108);
/* oklch */ color: oklch(30.0% 0.134 286.2);
Tailwind
colors: {
  custom: {
    50: '#6e5897',
    500: '#2d196c',
    950: '#000000',
  },
}
SCSS
$custom: #2d196c;
$custom-light: #6e5897;
$custom-dark: #000000;
JSON
{
  "hex": "#2d196c",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 108
  },
  "hsl": {
    "h": 254.458,
    "s": 62.406,
    "l": 26.078
  },
  "oklch": {
    "l": 0.3004,
    "c": 0.13414,
    "h": 286.2
  },
  "luminance": 0.02336
}

Semantic roles & 50–950 ramp

primary
#2D196C
secondary
#8AA13F
accent
#E542BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D196C

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

Preview Lab → · Contrast checker → · Palette generator →

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