#2D146A#2D146A

#2D146A is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.137 H 287.9°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#2D146A
RGBrgb(45, 20, 106)
HSLhsl(257, 68%, 25%)
HSVhsv(257, 81%, 42%)
CMYKcmyk(57.5%, 81.1%, 0%, 58.4%)
CIE-LABlab(16.00, 35.03, -45.37)
CIE-LCHlch(16.00, 57.32, 307.67°)
OKLaboklab(29.16% 0.0421 -0.1305)
OKLCHoklch(29.16% 0.137 287.9)
XYZxyz(3.9331, 2.0986, 13.8307)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D146A #516A14
analogous
#14266A #2D146A #58146A
triadic
#2D146A #6A2D14 #146A2D
tetradic
#2D146A #6A1426 #516A14 #146A58
square
#2D146A #6A1426 #516A14 #146A58
split-complementary
#2D146A #6A5814 #266A14
monochromatic
#0B051A #170A37 #2D146A #431E9D #5927D1

Accessibility & contrast

On white

14.79
#2D146A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2D146A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D146A
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D146A#FFFFFF#000000##FFFFFF
##2D146A1.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002568
Tritanopia (blue-blind)
#132D3E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2d146a;
/* rgb */ color: rgb(45, 20, 106);
/* oklch */ color: oklch(29.2% 0.137 287.9);
Tailwind
colors: {
  custom: {
    50: '#6e5596',
    500: '#2d146a',
    950: '#000000',
  },
}
SCSS
$custom: #2d146a;
$custom-light: #6e5596;
$custom-dark: #000000;
JSON
{
  "hex": "#2d146a",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 106
  },
  "hsl": {
    "h": 257.442,
    "s": 68.254,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29161,
    "c": 0.13717,
    "h": 287.9
  },
  "luminance": 0.02099
}

Semantic roles & 50–950 ramp

primary
#2D146A
secondary
#83A139
accent
#EB3DB8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D146A

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

Preview Lab → · Contrast checker → · Palette generator →

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