#2D0F4A#2D0F4A

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

Color values

HEX#2D0F4A
RGBrgb(45, 15, 74)
HSLhsl(271, 66%, 17%)
HSVhsv(271, 80%, 29%)
CMYKcmyk(39.2%, 79.7%, 0%, 71%)
CIE-LABlab(11.92, 28.14, -30.49)
CIE-LCHlch(11.92, 41.49, 312.71°)
OKLaboklab(25.32% 0.0559 -0.0868)
OKLCHoklch(25.32% 0.103 302.8)
XYZxyz(2.4888, 1.3939, 6.6152)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0F4A #2C4A0F
analogous
#0F0F4A #2D0F4A #4A0F4A
triadic
#2D0F4A #4A2D0F #0F4A2D
tetradic
#2D0F4A #4A0F0F #2C4A0F #0F4A4A
square
#2D0F4A #4A0F0F #2C4A0F #0F4A4A
split-complementary
#2D0F4A #4A4A0F #0F4A0F
monochromatic
#0F0519 #0F0519 #2D0F4A #4C197D #6B24B0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D0F4A#FFFFFF#000000##FFFFFF
##2D0F4A1.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)
#001F4C
Deuteranopia (green-blind)
#001F49
Tritanopia (blue-blind)
#271D2B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2d0f4a;
/* rgb */ color: rgb(45, 15, 74);
/* oklch */ color: oklch(25.3% 0.103 302.8);
Tailwind
colors: {
  custom: {
    50: '#69507d',
    500: '#2d0f4a',
    950: '#000000',
  },
}
SCSS
$custom: #2d0f4a;
$custom-light: #69507d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0f4a",
  "rgb": {
    "r": 45,
    "g": 15,
    "b": 74
  },
  "hsl": {
    "h": 270.508,
    "s": 66.292,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25321,
    "c": 0.1033,
    "h": 302.8
  },
  "luminance": 0.01394
}

Semantic roles & 50–950 ramp

primary
#2D0F4A
secondary
#5A8430
accent
#E93F92
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D0F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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