#2D0239#2D0239

#2D0239 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.2% C 0.103 H 317.4°. Best body text is #FFFFFF at 17.81:1 contrast (WCAG AA passes).

Color values

HEX#2D0239
RGBrgb(45, 2, 57)
HSLhsl(287, 93%, 12%)
HSVhsv(287, 96%, 22%)
CMYKcmyk(21.1%, 96.5%, 0%, 77.6%)
CIE-LABlab(8.10, 30.43, -24.63)
CIE-LCHlch(8.10, 39.15, 321.01°)
OKLaboklab(22.16% 0.0757 -0.0695)
OKLCHoklch(22.16% 0.103 317.4)
XYZxyz(1.8423, 0.8968, 3.9462)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0239 #0E3902
analogous
#120239 #2D0239 #39022A
triadic
#2D0239 #392D02 #02392D
tetradic
#2D0239 #391202 #0E3902 #022A39
square
#2D0239 #391202 #0E3902 #022A39
split-complementary
#2D0239 #2A3902 #023912
monochromatic
#17011E #17011E #2D0239 #5C0474 #8A06AF

Accessibility & contrast

On white

17.81
#2D0239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#2D0239 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0239
17.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0239#FFFFFF#000000##FFFFFF
##2D02391.0017.811.1817.81
#FFFFFF17.811.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00153A
Deuteranopia (green-blind)
#031938
Tritanopia (blue-blind)
#2C0E1E
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #2d0239;
/* rgb */ color: rgb(45, 2, 57);
/* oklch */ color: oklch(22.2% 0.103 317.4);
Tailwind
colors: {
  custom: {
    50: '#694870',
    500: '#2d0239',
    950: '#000000',
  },
}
SCSS
$custom: #2d0239;
$custom-light: #694870;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0239",
  "rgb": {
    "r": 45,
    "g": 2,
    "b": 57
  },
  "hsl": {
    "h": 286.909,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.22161,
    "c": 0.10279,
    "h": 317.4
  },
  "luminance": 0.00897
}

Semantic roles & 50–950 ramp

primary
#2D0239
secondary
#307D1A
accent
#FF2958
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2D0239

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

Preview Lab → · Contrast checker → · Palette generator →

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