#2D0F42#2D0F42

#2D0F42 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.6% C 0.093 H 307.9°. Best body text is #FFFFFF at 16.69:1 contrast (WCAG AA passes).

Color values

HEX#2D0F42
RGBrgb(45, 15, 66)
HSLhsl(275, 63%, 16%)
HSVhsv(275, 77%, 26%)
CMYKcmyk(31.8%, 77.3%, 0%, 74.1%)
CIE-LABlab(11.23, 25.92, -26.01)
CIE-LCHlch(11.23, 36.72, 314.90°)
OKLaboklab(24.61% 0.0574 -0.0737)
OKLCHoklch(24.61% 0.093 307.9)
XYZxyz(2.2362, 1.2929, 5.2850)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0F42 #24420F
analogous
#130F42 #2D0F42 #420F3D
triadic
#2D0F42 #422D0F #0F422D
tetradic
#2D0F42 #42130F #24420F #0F3D42
square
#2D0F42 #42130F #24420F #0F3D42
split-complementary
#2D0F42 #3D420F #0F4213
monochromatic
#110619 #110619 #2D0F42 #4F1A74 #7126A6

Accessibility & contrast

On white

16.69
#2D0F42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2D0F42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0F42
16.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0F42#FFFFFF#000000##FFFFFF
##2D0F421.0016.691.2616.69
#FFFFFF16.691.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D44
Deuteranopia (green-blind)
#041E41
Tritanopia (blue-blind)
#2A1A27
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2d0f42;
/* rgb */ color: rgb(45, 15, 66);
/* oklch */ color: oklch(24.6% 0.093 307.9);
Tailwind
colors: {
  custom: {
    50: '#685077',
    500: '#2d0f42',
    950: '#000000',
  },
}
SCSS
$custom: #2d0f42;
$custom-light: #685077;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0f42",
  "rgb": {
    "r": 45,
    "g": 15,
    "b": 66
  },
  "hsl": {
    "h": 275.294,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24611,
    "c": 0.09338,
    "h": 307.9
  },
  "luminance": 0.01293
}

Semantic roles & 50–950 ramp

primary
#2D0F42
secondary
#507C30
accent
#E64285
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2D0F42

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

Preview Lab → · Contrast checker → · Palette generator →

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