#2D1051#2D1051

#2D1051 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.111 H 298.7°. Best body text is #FFFFFF at 16.10:1 contrast (WCAG AA passes).

Color values

HEX#2D1051
RGBrgb(45, 16, 81)
HSLhsl(267, 67%, 19%)
HSVhsv(267, 80%, 32%)
CMYKcmyk(44.4%, 80.2%, 0%, 68.2%)
CIE-LABlab(12.75, 29.62, -33.96)
CIE-LCHlch(12.75, 45.06, 311.09°)
OKLaboklab(26.11% 0.0532 -0.097)
OKLCHoklch(26.11% 0.111 298.7)
XYZxyz(2.7523, 1.5225, 7.9319)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1051 #345110
analogous
#101451 #2D1051 #4E1051
triadic
#2D1051 #512D10 #10512D
tetradic
#2D1051 #511014 #345110 #10514E
square
#2D1051 #511014 #345110 #10514E
split-complementary
#2D1051 #514E10 #145110
monochromatic
#0E051A #11061E #2D1051 #491A84 #6624B7

Accessibility & contrast

On white

16.10
#2D1051 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2D1051 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1051
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1051#FFFFFF#000000##FFFFFF
##2D10511.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002153
Deuteranopia (green-blind)
#002050
Tritanopia (blue-blind)
#24212F
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2d1051;
/* rgb */ color: rgb(45, 16, 81);
/* oklch */ color: oklch(26.1% 0.111 298.7);
Tailwind
colors: {
  custom: {
    50: '#6a5182',
    500: '#2d1051',
    950: '#000000',
  },
}
SCSS
$custom: #2d1051;
$custom-light: #6a5182;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1051",
  "rgb": {
    "r": 45,
    "g": 16,
    "b": 81
  },
  "hsl": {
    "h": 266.769,
    "s": 67.01,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26112,
    "c": 0.11065,
    "h": 298.7
  },
  "luminance": 0.01523
}

Semantic roles & 50–950 ramp

primary
#2D1051
secondary
#638B32
accent
#EA3E9D
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D1051

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

Preview Lab → · Contrast checker → · Palette generator →

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