#2D1058#2D1058

#2D1058 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.8% C 0.119 H 295.4°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#2D1058
RGBrgb(45, 16, 88)
HSLhsl(264, 69%, 20%)
HSVhsv(264, 82%, 35%)
CMYKcmyk(48.9%, 81.8%, 0%, 65.5%)
CIE-LABlab(13.43, 31.66, -37.61)
CIE-LCHlch(13.43, 49.16, 310.09°)
OKLaboklab(26.8% 0.0512 -0.1078)
OKLCHoklch(26.8% 0.119 295.4)
XYZxyz(3.0285, 1.6330, 9.3863)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1058 #3B5810
analogous
#101758 #2D1058 #511058
triadic
#2D1058 #582D10 #10582D
tetradic
#2D1058 #581017 #3B5810 #105851
square
#2D1058 #581017 #3B5810 #105851
split-complementary
#2D1058 #585110 #175810
monochromatic
#0D051A #130724 #2D1058 #47198C #6223C0

Accessibility & contrast

On white

15.83
#2D1058 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2D1058 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1058
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1058#FFFFFF#000000##FFFFFF
##2D10581.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235A
Deuteranopia (green-blind)
#002157
Tritanopia (blue-blind)
#212333
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2d1058;
/* rgb */ color: rgb(45, 16, 88);
/* oklch */ color: oklch(26.8% 0.119 295.4);
Tailwind
colors: {
  custom: {
    50: '#6b5288',
    500: '#2d1058',
    950: '#000000',
  },
}
SCSS
$custom: #2d1058;
$custom-light: #6b5288;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1058",
  "rgb": {
    "r": 45,
    "g": 16,
    "b": 88
  },
  "hsl": {
    "h": 264.167,
    "s": 69.231,
    "l": 20.392
  },
  "oklch": {
    "l": 0.268,
    "c": 0.11931,
    "h": 295.4
  },
  "luminance": 0.01633
}

Semantic roles & 50–950 ramp

primary
#2D1058
secondary
#6B9132
accent
#EC3CA5
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2D1058

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

Preview Lab → · Contrast checker → · Palette generator →

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