#2D0E4C#2D0E4C

#2D0E4C is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.107 H 301.9°. Best body text is #FFFFFF at 16.42:1 contrast (WCAG AA passes).

Color values

HEX#2D0E4C
RGBrgb(45, 14, 76)
HSLhsl(270, 69%, 18%)
HSVhsv(270, 82%, 30%)
CMYKcmyk(40.8%, 81.6%, 0%, 70.2%)
CIE-LABlab(11.92, 29.22, -31.88)
CIE-LCHlch(11.92, 43.25, 312.51°)
OKLaboklab(25.38% 0.0566 -0.0909)
OKLCHoklch(25.38% 0.107 301.9)
XYZxyz(2.5434, 1.3938, 6.9711)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0E4C #2D4C0E
analogous
#0E0E4C #2D0E4C #4C0E4C
triadic
#2D0E4C #4C2D0E #0E4C2D
tetradic
#2D0E4C #4C0E0E #2D4C0E #0E4C4C
square
#2D0E4C #4C0E0E #2D4C0E #0E4C4C
split-complementary
#2D0E4C #4C4C0E #0E4C0E
monochromatic
#0F051A #0F051A #2D0E4C #4C1880 #6A21B3

Accessibility & contrast

On white

16.42
#2D0E4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2D0E4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0E4C
16.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0E4C#FFFFFF#000000##FFFFFF
##2D0E4C1.0016.421.2816.42
#FFFFFF16.421.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4E
Deuteranopia (green-blind)
#001F4B
Tritanopia (blue-blind)
#261E2C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2d0e4c;
/* rgb */ color: rgb(45, 14, 76);
/* oklch */ color: oklch(25.4% 0.107 301.9);
Tailwind
colors: {
  custom: {
    50: '#6a507f',
    500: '#2d0e4c',
    950: '#000000',
  },
}
SCSS
$custom: #2d0e4c;
$custom-light: #6a507f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0e4c",
  "rgb": {
    "r": 45,
    "g": 14,
    "b": 76
  },
  "hsl": {
    "h": 270,
    "s": 68.889,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25378,
    "c": 0.10708,
    "h": 301.9
  },
  "luminance": 0.01394
}

Semantic roles & 50–950 ramp

primary
#2D0E4C
secondary
#5B872F
accent
#EC3C94
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D0E4C

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

Preview Lab → · Contrast checker → · Palette generator →

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