#2D1054#2D1054

#2D1054 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.114 H 297.2°. Best body text is #FFFFFF at 15.98:1 contrast (WCAG AA passes).

Color values

HEX#2D1054
RGBrgb(45, 16, 84)
HSLhsl(266, 68%, 20%)
HSVhsv(266, 81%, 33%)
CMYKcmyk(46.4%, 81%, 0%, 67.1%)
CIE-LABlab(13.04, 30.49, -35.54)
CIE-LCHlch(13.04, 46.83, 310.63°)
OKLaboklab(26.4% 0.0524 -0.1017)
OKLCHoklch(26.4% 0.114 297.2)
XYZxyz(2.8673, 1.5685, 8.5375)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1054 #375410
analogous
#101554 #2D1054 #4F1054
triadic
#2D1054 #542D10 #10542D
tetradic
#2D1054 #541015 #375410 #10544F
square
#2D1054 #541015 #375410 #10544F
split-complementary
#2D1054 #544F10 #155410
monochromatic
#0E051A #110621 #2D1054 #491A87 #6424BB

Accessibility & contrast

On white

15.98
#2D1054 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2D1054 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1054
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1054#FFFFFF#000000##FFFFFF
##2D10541.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002256
Deuteranopia (green-blind)
#002153
Tritanopia (blue-blind)
#232231
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2d1054;
/* rgb */ color: rgb(45, 16, 84);
/* oklch */ color: oklch(26.4% 0.114 297.2);
Tailwind
colors: {
  custom: {
    50: '#6b5185',
    500: '#2d1054',
    950: '#000000',
  },
}
SCSS
$custom: #2d1054;
$custom-light: #6b5185;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1054",
  "rgb": {
    "r": 45,
    "g": 16,
    "b": 84
  },
  "hsl": {
    "h": 265.588,
    "s": 68,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26403,
    "c": 0.11437,
    "h": 297.2
  },
  "luminance": 0.01569
}

Semantic roles & 50–950 ramp

primary
#2D1054
secondary
#678E32
accent
#EB3DA1
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2D1054

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

Preview Lab → · Contrast checker → · Palette generator →

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