#2D1857#2D1857

#2D1857 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.107 H 293.5°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#2D1857
RGBrgb(45, 24, 87)
HSLhsl(260, 57%, 22%)
HSVhsv(260, 72%, 34%)
CMYKcmyk(48.3%, 72.4%, 0%, 65.9%)
CIE-LABlab(14.95, 26.84, -34.45)
CIE-LCHlch(14.95, 43.68, 307.92°)
OKLaboklab(27.85% 0.0429 -0.0985)
OKLCHoklch(27.85% 0.107 293.5)
XYZxyz(3.1287, 1.8992, 9.2167)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1857 #425718
analogous
#182357 #2D1857 #4D1857
triadic
#2D1857 #572D18 #18572D
tetradic
#2D1857 #571823 #425718 #18574D
square
#2D1857 #571823 #425718 #18574D
split-complementary
#2D1857 #574D18 #235718
monochromatic
#0C0718 #140B27 #2D1857 #462587 #5F32B7

Accessibility & contrast

On white

15.22
#2D1857 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2D1857 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1857
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1857#FFFFFF#000000##FFFFFF
##2D18571.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002659
Deuteranopia (green-blind)
#002456
Tritanopia (blue-blind)
#212735
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2d1857;
/* rgb */ color: rgb(45, 24, 87);
/* oklch */ color: oklch(27.8% 0.107 293.5);
Tailwind
colors: {
  custom: {
    50: '#6a5687',
    500: '#2d1857',
    950: '#000000',
  },
}
SCSS
$custom: #2d1857;
$custom-light: #6a5687;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1857",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 87
  },
  "hsl": {
    "h": 260,
    "s": 56.757,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27849,
    "c": 0.10747,
    "h": 293.5
  },
  "luminance": 0.01899
}

Semantic roles & 50–950 ramp

primary
#2D1857
secondary
#738E3D
accent
#E048AD
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2D1857

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

Preview Lab → · Contrast checker → · Palette generator →

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