#2D1340#2D1340

#2D1340 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.084 H 308.1°. Best body text is #FFFFFF at 16.42:1 contrast (WCAG AA passes).

Color values

HEX#2D1340
RGBrgb(45, 19, 64)
HSLhsl(275, 54%, 16%)
HSVhsv(275, 70%, 25%)
CMYKcmyk(29.7%, 70.3%, 0%, 74.9%)
CIE-LABlab(11.92, 23.03, -23.49)
CIE-LCHlch(11.92, 32.90, 314.43°)
OKLaboklab(25.06% 0.052 -0.0663)
OKLCHoklch(25.06% 0.084 308.1)
XYZxyz(2.2403, 1.3938, 5.0005)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1340 #264013
analogous
#171340 #2D1340 #40133D
triadic
#2D1340 #402D13 #13402D
tetradic
#2D1340 #401713 #264013 #133D40
square
#2D1340 #401713 #264013 #133D40
split-complementary
#2D1340 #3D4013 #134017
monochromatic
#110718 #110718 #2D1340 #4E216F #6F2F9E

Accessibility & contrast

On white

16.42
#2D1340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2D1340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1340
16.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1340#FFFFFF#000000##FFFFFF
##2D13401.0016.421.2816.42
#FFFFFF16.421.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011E41
Deuteranopia (green-blind)
#0C203F
Tritanopia (blue-blind)
#2A1C27
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2d1340;
/* rgb */ color: rgb(45, 19, 64);
/* oklch */ color: oklch(25.1% 0.084 308.1);
Tailwind
colors: {
  custom: {
    50: '#685275',
    500: '#2d1340',
    950: '#000000',
  },
}
SCSS
$custom: #2d1340;
$custom-light: #685275;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1340",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 64
  },
  "hsl": {
    "h": 274.667,
    "s": 54.217,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25058,
    "c": 0.08424,
    "h": 308.1
  },
  "luminance": 0.01394
}

Semantic roles & 50–950 ramp

primary
#2D1340
secondary
#527936
accent
#DE4A88
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2D1340

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

Preview Lab → · Contrast checker → · Palette generator →

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