#2D0F40#2D0F40

#2D0F40 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.4% C 0.091 H 309.3°. Best body text is #FFFFFF at 16.75:1 contrast (WCAG AA passes).

Color values

HEX#2D0F40
RGBrgb(45, 15, 64)
HSLhsl(277, 62%, 15%)
HSVhsv(277, 77%, 25%)
CMYKcmyk(29.7%, 76.6%, 0%, 74.9%)
CIE-LABlab(11.06, 25.38, -24.86)
CIE-LCHlch(11.06, 35.53, 315.58°)
OKLaboklab(24.44% 0.0576 -0.0703)
OKLCHoklch(24.44% 0.091 309.3)
XYZxyz(2.1782, 1.2697, 4.9798)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0F40 #22400F
analogous
#150F40 #2D0F40 #400F3A
triadic
#2D0F40 #402D0F #0F402D
tetradic
#2D0F40 #40150F #22400F #0F3A40
square
#2D0F40 #40150F #22400F #0F3A40
split-complementary
#2D0F40 #3A400F #0F4015
monochromatic
#110619 #110619 #2D0F40 #501B72 #7326A3

Accessibility & contrast

On white

16.75
#2D0F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2D0F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0F40
16.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0F40#FFFFFF#000000##FFFFFF
##2D0F401.0016.751.2516.75
#FFFFFF16.751.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C41
Deuteranopia (green-blind)
#071E3F
Tritanopia (blue-blind)
#2A1926
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2d0f40;
/* rgb */ color: rgb(45, 15, 64);
/* oklch */ color: oklch(24.4% 0.091 309.3);
Tailwind
colors: {
  custom: {
    50: '#685075',
    500: '#2d0f40',
    950: '#000000',
  },
}
SCSS
$custom: #2d0f40;
$custom-light: #685075;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0f40",
  "rgb": {
    "r": 45,
    "g": 15,
    "b": 64
  },
  "hsl": {
    "h": 276.735,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.24442,
    "c": 0.0909,
    "h": 309.3
  },
  "luminance": 0.0127
}

Semantic roles & 50–950 ramp

primary
#2D0F40
secondary
#4D7A30
accent
#E54382
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2D0F40

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

Preview Lab → · Contrast checker → · Palette generator →

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