#2D146F#2D146F

#2D146F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.143 H 286.4°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#2D146F
RGBrgb(45, 20, 111)
HSLhsl(256, 69%, 26%)
HSVhsv(256, 82%, 44%)
CMYKcmyk(59.5%, 82%, 0%, 56.5%)
CIE-LABlab(16.53, 36.56, -47.75)
CIE-LCHlch(16.53, 60.14, 307.44°)
OKLaboklab(29.7% 0.0405 -0.1375)
OKLCHoklch(29.7% 0.143 286.4)
XYZxyz(4.2007, 2.2057, 15.2402)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D146F #566F14
analogous
#14286F #2D146F #5A146F
triadic
#2D146F #6F2D14 #146F2D
tetradic
#2D146F #6F1428 #566F14 #146F5A
square
#2D146F #6F1428 #566F14 #146F5A
split-complementary
#2D146F #6F5A14 #286F14
monochromatic
#0B051A #180B3B #2D146F #421DA3 #5727D7

Accessibility & contrast

On white

14.57
#2D146F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2D146F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D146F
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D146F#FFFFFF#000000##FFFFFF
##2D146F1.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00266D
Tritanopia (blue-blind)
#0D2F41
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2d146f;
/* rgb */ color: rgb(45, 20, 111);
/* oklch */ color: oklch(29.7% 0.143 286.4);
Tailwind
colors: {
  custom: {
    50: '#6f5599',
    500: '#2d146f',
    950: '#000000',
  },
}
SCSS
$custom: #2d146f;
$custom-light: #6f5599;
$custom-dark: #000000;
JSON
{
  "hex": "#2d146f",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 111
  },
  "hsl": {
    "h": 256.484,
    "s": 69.466,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29695,
    "c": 0.14336,
    "h": 286.4
  },
  "luminance": 0.02206
}

Semantic roles & 50–950 ramp

primary
#2D146F
secondary
#88A639
accent
#EC3CBC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D146F

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

Preview Lab → · Contrast checker → · Palette generator →

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