#2D1056#2D1056

#2D1056 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.117 H 296.3°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#2D1056
RGBrgb(45, 16, 86)
HSLhsl(265, 69%, 20%)
HSVhsv(265, 81%, 34%)
CMYKcmyk(47.7%, 81.4%, 0%, 66.3%)
CIE-LABlab(13.23, 31.07, -36.58)
CIE-LCHlch(13.23, 48.00, 310.35°)
OKLaboklab(26.6% 0.0518 -0.1047)
OKLCHoklch(26.6% 0.117 296.3)
XYZxyz(2.9467, 1.6003, 8.9559)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1056 #395610
analogous
#101656 #2D1056 #501056
triadic
#2D1056 #562D10 #10562D
tetradic
#2D1056 #561016 #395610 #105650
square
#2D1056 #561016 #395610 #105650
split-complementary
#2D1056 #565010 #165610
monochromatic
#0D051A #120622 #2D1056 #481A8A #6323BD

Accessibility & contrast

On white

15.91
#2D1056 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2D1056 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1056
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1056#FFFFFF#000000##FFFFFF
##2D10561.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002258
Deuteranopia (green-blind)
#002155
Tritanopia (blue-blind)
#222332
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2d1056;
/* rgb */ color: rgb(45, 16, 86);
/* oklch */ color: oklch(26.6% 0.117 296.3);
Tailwind
colors: {
  custom: {
    50: '#6b5286',
    500: '#2d1056',
    950: '#000000',
  },
}
SCSS
$custom: #2d1056;
$custom-light: #6b5286;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1056",
  "rgb": {
    "r": 45,
    "g": 16,
    "b": 86
  },
  "hsl": {
    "h": 264.857,
    "s": 68.627,
    "l": 20
  },
  "oklch": {
    "l": 0.266,
    "c": 0.11684,
    "h": 296.3
  },
  "luminance": 0.016
}

Semantic roles & 50–950 ramp

primary
#2D1056
secondary
#698F32
accent
#EB3CA3
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2D1056

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

Preview Lab → · Contrast checker → · Palette generator →

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