#2D0E40#2D0E40

#2D0E40 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.3% C 0.092 H 309.6°. Best body text is #FFFFFF at 16.82:1 contrast (WCAG AA passes).

Color values

HEX#2D0E40
RGBrgb(45, 14, 64)
HSLhsl(277, 64%, 15%)
HSVhsv(277, 78%, 25%)
CMYKcmyk(29.7%, 78.1%, 0%, 74.9%)
CIE-LABlab(10.87, 25.93, -25.18)
CIE-LCHlch(10.87, 36.14, 315.83°)
OKLaboklab(24.3% 0.0589 -0.0712)
OKLCHoklch(24.3% 0.092 309.6)
XYZxyz(2.1645, 1.2422, 4.9752)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0E40 #21400E
analogous
#140E40 #2D0E40 #400E3A
triadic
#2D0E40 #402D0E #0E402D
tetradic
#2D0E40 #40140E #21400E #0E3A40
square
#2D0E40 #40140E #21400E #0E3A40
split-complementary
#2D0E40 #3A400E #0E4014
monochromatic
#120519 #120519 #2D0E40 #501972 #7424A4

Accessibility & contrast

On white

16.82
#2D0E40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D0E40
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0E40#FFFFFF#000000##FFFFFF
##2D0E401.0016.821.2516.82
#FFFFFF16.821.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C41
Deuteranopia (green-blind)
#061E3F
Tritanopia (blue-blind)
#2A1925
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2d0e40;
/* rgb */ color: rgb(45, 14, 64);
/* oklch */ color: oklch(24.3% 0.092 309.6);
Tailwind
colors: {
  custom: {
    50: '#684f75',
    500: '#2d0e40',
    950: '#000000',
  },
}
SCSS
$custom: #2d0e40;
$custom-light: #684f75;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0e40",
  "rgb": {
    "r": 45,
    "g": 14,
    "b": 64
  },
  "hsl": {
    "h": 277.2,
    "s": 64.103,
    "l": 15.294
  },
  "oklch": {
    "l": 0.24301,
    "c": 0.09245,
    "h": 309.6
  },
  "luminance": 0.01242
}

Semantic roles & 50–950 ramp

primary
#2D0E40
secondary
#4C7B2F
accent
#E74180
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2D0E40

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

Preview Lab → · Contrast checker → · Palette generator →

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