#2D1057#2D1057

#2D1057 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.7% C 0.118 H 295.9°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#2D1057
RGBrgb(45, 16, 87)
HSLhsl(265, 69%, 20%)
HSVhsv(265, 82%, 34%)
CMYKcmyk(48.3%, 81.6%, 0%, 65.9%)
CIE-LABlab(13.33, 31.37, -37.10)
CIE-LCHlch(13.33, 48.58, 310.22°)
OKLaboklab(26.7% 0.0515 -0.1063)
OKLCHoklch(26.7% 0.118 295.9)
XYZxyz(2.9873, 1.6165, 9.1696)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1057 #3A5710
analogous
#101657 #2D1057 #501057
triadic
#2D1057 #572D10 #10572D
tetradic
#2D1057 #571016 #3A5710 #105750
square
#2D1057 #571016 #3A5710 #105750
split-complementary
#2D1057 #575010 #165710
monochromatic
#0D051A #120623 #2D1057 #481A8B #6223BE

Accessibility & contrast

On white

15.87
#2D1057 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1057
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1057#FFFFFF#000000##FFFFFF
##2D10571.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002359
Deuteranopia (green-blind)
#002156
Tritanopia (blue-blind)
#212333
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2d1057;
/* rgb */ color: rgb(45, 16, 87);
/* oklch */ color: oklch(26.7% 0.118 295.9);
Tailwind
colors: {
  custom: {
    50: '#6b5287',
    500: '#2d1057',
    950: '#000000',
  },
}
SCSS
$custom: #2d1057;
$custom-light: #6b5287;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1057",
  "rgb": {
    "r": 45,
    "g": 16,
    "b": 87
  },
  "hsl": {
    "h": 264.507,
    "s": 68.932,
    "l": 20.196
  },
  "oklch": {
    "l": 0.267,
    "c": 0.11808,
    "h": 295.9
  },
  "luminance": 0.01617
}

Semantic roles & 50–950 ramp

primary
#2D1057
secondary
#6A9032
accent
#EC3CA4
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2D1057

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

Preview Lab → · Contrast checker → · Palette generator →

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