#2D0F6A#2D0F6A

#2D0F6A is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.6% C 0.142 H 288.8°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#2D0F6A
RGBrgb(45, 15, 106)
HSLhsl(260, 75%, 24%)
HSVhsv(260, 86%, 42%)
CMYKcmyk(57.5%, 85.8%, 0%, 58.4%)
CIE-LABlab(15.17, 37.42, -46.73)
CIE-LCHlch(15.17, 59.87, 308.69°)
OKLaboklab(28.59% 0.0458 -0.1345)
OKLCHoklch(28.59% 0.142 288.8)
XYZxyz(3.8538, 1.9400, 13.8043)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0F6A #4C6A0F
analogous
#0F1E6A #2D0F6A #5A0F6A
triadic
#2D0F6A #6A2D0F #0F6A2D
tetradic
#2D0F6A #6A0F1E #4C6A0F #0F6A5A
square
#2D0F6A #6A0F1E #4C6A0F #0F6A5A
split-complementary
#2D0F6A #6A5A0F #1E6A0F
monochromatic
#0B041B #160734 #2D0F6A #4417A0 #5B1ED5

Accessibility & contrast

On white

15.13
#2D0F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2D0F6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0F6A
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0F6A#FFFFFF#000000##FFFFFF
##2D0F6A1.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286C
Deuteranopia (green-blind)
#002468
Tritanopia (blue-blind)
#142B3D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2d0f6a;
/* rgb */ color: rgb(45, 15, 106);
/* oklch */ color: oklch(28.6% 0.142 288.8);
Tailwind
colors: {
  custom: {
    50: '#6e5296',
    500: '#2d0f6a',
    950: '#000000',
  },
}
SCSS
$custom: #2d0f6a;
$custom-light: #6e5296;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0f6a",
  "rgb": {
    "r": 45,
    "g": 15,
    "b": 106
  },
  "hsl": {
    "h": 259.78,
    "s": 75.207,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28586,
    "c": 0.14205,
    "h": 288.8
  },
  "luminance": 0.0194
}

Semantic roles & 50–950 ramp

primary
#2D0F6A
secondary
#7DA232
accent
#F236B4
background
#F7F4F9
surface
#EDE7F2
border
#C8C3CC
text
#08020D
muted
#7B787E

Preview Lab

Preview with #2D0F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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