#2D1345#2D1345

#2D1345 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.5% C 0.091 H 304.6°. Best body text is #FFFFFF at 16.27:1 contrast (WCAG AA passes).

Color values

HEX#2D1345
RGBrgb(45, 19, 69)
HSLhsl(271, 57%, 17%)
HSVhsv(271, 72%, 27%)
CMYKcmyk(34.8%, 72.5%, 0%, 72.9%)
CIE-LABlab(12.31, 24.45, -26.37)
CIE-LCHlch(12.31, 35.96, 312.83°)
OKLaboklab(25.47% 0.0516 -0.0748)
OKLCHoklch(25.47% 0.091 304.6)
XYZxyz(2.3890, 1.4533, 5.7837)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1345 #2B4513
analogous
#141345 #2D1345 #451344
triadic
#2D1345 #452D13 #13452D
tetradic
#2D1345 #451413 #2B4513 #134445
square
#2D1345 #451413 #2B4513 #134445
split-complementary
#2D1345 #444513 #134514
monochromatic
#100718 #100718 #2D1345 #4C2075 #6C2DA5

Accessibility & contrast

On white

16.27
#2D1345 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2D1345 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1345
16.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1345#FFFFFF#000000##FFFFFF
##2D13451.0016.271.2916.27
#FFFFFF16.271.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F47
Deuteranopia (green-blind)
#062044
Tritanopia (blue-blind)
#291E2A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d1345;
/* rgb */ color: rgb(45, 19, 69);
/* oklch */ color: oklch(25.5% 0.091 304.6);
Tailwind
colors: {
  custom: {
    50: '#685279',
    500: '#2d1345',
    950: '#000000',
  },
}
SCSS
$custom: #2d1345;
$custom-light: #685279;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1345",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 69
  },
  "hsl": {
    "h": 271.2,
    "s": 56.818,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25466,
    "c": 0.09086,
    "h": 304.6
  },
  "luminance": 0.01453
}

Semantic roles & 50–950 ramp

primary
#2D1345
secondary
#587E36
accent
#E04891
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2D1345

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

Preview Lab → · Contrast checker → · Palette generator →

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