#2D1654#2D1654

#2D1654 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.106 H 295.5°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#2D1654
RGBrgb(45, 22, 84)
HSLhsl(262, 58%, 21%)
HSVhsv(262, 74%, 33%)
CMYKcmyk(46.4%, 73.8%, 0%, 67.1%)
CIE-LABlab(14.24, 27.12, -33.58)
CIE-LCHlch(14.24, 43.16, 308.93°)
OKLaboklab(27.26% 0.0457 -0.096)
OKLCHoklch(27.26% 0.106 295.5)
XYZxyz(2.9689, 1.7717, 8.5713)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1654 #3D5416
analogous
#161E54 #2D1654 #4C1654
triadic
#2D1654 #542D16 #16542D
tetradic
#2D1654 #54161E #3D5416 #16544C
square
#2D1654 #54161E #3D5416 #16544C
split-complementary
#2D1654 #544C16 #1E5416
monochromatic
#0D0618 #130924 #2D1654 #472384 #612FB5

Accessibility & contrast

On white

15.51
#2D1654 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2D1654 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1654
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1654#FFFFFF#000000##FFFFFF
##2D16541.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002556
Deuteranopia (green-blind)
#002353
Tritanopia (blue-blind)
#232533
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2d1654;
/* rgb */ color: rgb(45, 22, 84);
/* oklch */ color: oklch(27.3% 0.106 295.5);
Tailwind
colors: {
  custom: {
    50: '#6a5585',
    500: '#2d1654',
    950: '#000000',
  },
}
SCSS
$custom: #2d1654;
$custom-light: #6a5585;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1654",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 84
  },
  "hsl": {
    "h": 262.258,
    "s": 58.491,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27258,
    "c": 0.1063,
    "h": 295.5
  },
  "luminance": 0.01772
}

Semantic roles & 50–950 ramp

primary
#2D1654
secondary
#6D8B3A
accent
#E246A8
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2D1654

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

Preview Lab → · Contrast checker → · Palette generator →

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