#2D146D#2D146D

#2D146D is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.141 H 287.0°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#2D146D
RGBrgb(45, 20, 109)
HSLhsl(257, 69%, 25%)
HSVhsv(257, 82%, 43%)
CMYKcmyk(58.7%, 81.7%, 0%, 57.3%)
CIE-LABlab(16.32, 35.95, -46.81)
CIE-LCHlch(16.32, 59.02, 307.52°)
OKLaboklab(29.48% 0.0412 -0.1347)
OKLCHoklch(29.48% 0.141 287)
XYZxyz(4.0918, 2.1621, 14.6667)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D146D #546D14
analogous
#14276D #2D146D #59146D
triadic
#2D146D #6D2D14 #146D2D
tetradic
#2D146D #6D1427 #546D14 #146D59
square
#2D146D #6D1427 #546D14 #146D59
split-complementary
#2D146D #6D5914 #276D14
monochromatic
#0B051A #180B39 #2D146D #421DA1 #5827D4

Accessibility & contrast

On white

14.66
#2D146D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2D146D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D146D
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D146D#FFFFFF#000000##FFFFFF
##2D146D1.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6F
Deuteranopia (green-blind)
#00266B
Tritanopia (blue-blind)
#102E40
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2d146d;
/* rgb */ color: rgb(45, 20, 109);
/* oklch */ color: oklch(29.5% 0.141 287.0);
Tailwind
colors: {
  custom: {
    50: '#6f5598',
    500: '#2d146d',
    950: '#000000',
  },
}
SCSS
$custom: #2d146d;
$custom-light: #6f5598;
$custom-dark: #000000;
JSON
{
  "hex": "#2d146d",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 109
  },
  "hsl": {
    "h": 256.854,
    "s": 68.992,
    "l": 25.294
  },
  "oklch": {
    "l": 0.2948,
    "c": 0.14089,
    "h": 287
  },
  "luminance": 0.02162
}

Semantic roles & 50–950 ramp

primary
#2D146D
secondary
#86A439
accent
#EC3CBA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D146D

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

Preview Lab → · Contrast checker → · Palette generator →

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