#2D0E4F#2D0E4F

#2D0E4F is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.7% C 0.111 H 300.2°. Best body text is #FFFFFF at 16.31:1 contrast (WCAG AA passes).

Color values

HEX#2D0E4F
RGBrgb(45, 14, 79)
HSLhsl(269, 70%, 18%)
HSVhsv(269, 82%, 31%)
CMYKcmyk(43%, 82.3%, 0%, 69%)
CIE-LABlab(12.20, 30.07, -33.49)
CIE-LCHlch(12.20, 45.01, 311.92°)
OKLaboklab(25.66% 0.0558 -0.0956)
OKLCHoklch(25.66% 0.111 300.2)
XYZxyz(2.6502, 1.4365, 7.5333)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0E4F #304F0E
analogous
#0E104F #2D0E4F #4D0E4F
triadic
#2D0E4F #4F2D0E #0E4F2D
tetradic
#2D0E4F #4F0E10 #304F0E #0E4F4D
square
#2D0E4F #4F0E10 #304F0E #0E4F4D
split-complementary
#2D0E4F #4F4D0E #104F0E
monochromatic
#0F051A #0F051B #2D0E4F #4B1783 #6820B7

Accessibility & contrast

On white

16.31
#2D0E4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2D0E4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0E4F
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0E4F#FFFFFF#000000##FFFFFF
##2D0E4F1.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#001F4E
Tritanopia (blue-blind)
#251F2E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d0e4f;
/* rgb */ color: rgb(45, 14, 79);
/* oklch */ color: oklch(25.7% 0.111 300.2);
Tailwind
colors: {
  custom: {
    50: '#6a5081',
    500: '#2d0e4f',
    950: '#000000',
  },
}
SCSS
$custom: #2d0e4f;
$custom-light: #6a5081;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0e4f",
  "rgb": {
    "r": 45,
    "g": 14,
    "b": 79
  },
  "hsl": {
    "h": 268.615,
    "s": 69.892,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25664,
    "c": 0.11073,
    "h": 300.2
  },
  "luminance": 0.01436
}

Semantic roles & 50–950 ramp

primary
#2D0E4F
secondary
#5E8A2F
accent
#ED3B98
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D0E4F

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

Preview Lab → · Contrast checker → · Palette generator →

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