#2D0F4B#2D0F4B

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

Color values

HEX#2D0F4B
RGBrgb(45, 15, 75)
HSLhsl(270, 67%, 18%)
HSVhsv(270, 80%, 29%)
CMYKcmyk(40%, 80%, 0%, 70.6%)
CIE-LABlab(12.01, 28.42, -31.04)
CIE-LCHlch(12.01, 42.09, 312.48°)
OKLaboklab(25.41% 0.0557 -0.0885)
OKLCHoklch(25.41% 0.105 302.2)
XYZxyz(2.5227, 1.4075, 6.7940)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0F4B #2D4B0F
analogous
#0F0F4B #2D0F4B #4B0F4B
triadic
#2D0F4B #4B2D0F #0F4B2D
tetradic
#2D0F4B #4B0F0F #2D4B0F #0F4B4B
square
#2D0F4B #4B0F0F #2D4B0F #0F4B4B
split-complementary
#2D0F4B #4B4B0F #0F4B0F
monochromatic
#0F051A #0F051A #2D0F4B #4C197E #6A23B1

Accessibility & contrast

On white

16.39
#2D0F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D0F4B
16.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0F4B#FFFFFF#000000##FFFFFF
##2D0F4B1.0016.391.2816.39
#FFFFFF16.391.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4D
Deuteranopia (green-blind)
#001F4A
Tritanopia (blue-blind)
#271E2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d0f4b;
/* rgb */ color: rgb(45, 15, 75);
/* oklch */ color: oklch(25.4% 0.105 302.2);
Tailwind
colors: {
  custom: {
    50: '#69507e',
    500: '#2d0f4b',
    950: '#000000',
  },
}
SCSS
$custom: #2d0f4b;
$custom-light: #69507e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0f4b",
  "rgb": {
    "r": 45,
    "g": 15,
    "b": 75
  },
  "hsl": {
    "h": 270,
    "s": 66.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25414,
    "c": 0.10454,
    "h": 302.2
  },
  "luminance": 0.01408
}

Semantic roles & 50–950 ramp

primary
#2D0F4B
secondary
#5B8530
accent
#EA3E94
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D0F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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