#2D0F54#2D0F54

#2D0F54 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.3% C 0.116 H 297.5°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#2D0F54
RGBrgb(45, 15, 84)
HSLhsl(266, 70%, 19%)
HSVhsv(266, 82%, 33%)
CMYKcmyk(46.4%, 82.1%, 0%, 67.1%)
CIE-LABlab(12.86, 31.00, -35.83)
CIE-LCHlch(12.86, 47.38, 310.87°)
OKLaboklab(26.28% 0.0534 -0.1025)
OKLCHoklch(26.28% 0.116 297.5)
XYZxyz(2.8528, 1.5396, 8.5326)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0F54 #36540F
analogous
#0F1454 #2D0F54 #500F54
triadic
#2D0F54 #542D0F #0F542D
tetradic
#2D0F54 #540F14 #36540F #0F5450
square
#2D0F54 #540F14 #36540F #0F5450
split-complementary
#2D0F54 #54500F #14540F
monochromatic
#0E051A #110620 #2D0F54 #491888 #6522BC

Accessibility & contrast

On white

16.06
#2D0F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2D0F54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0F54
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0F54#FFFFFF#000000##FFFFFF
##2D0F541.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002156
Deuteranopia (green-blind)
#002053
Tritanopia (blue-blind)
#232131
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2d0f54;
/* rgb */ color: rgb(45, 15, 84);
/* oklch */ color: oklch(26.3% 0.116 297.5);
Tailwind
colors: {
  custom: {
    50: '#6b5185',
    500: '#2d0f54',
    950: '#000000',
  },
}
SCSS
$custom: #2d0f54;
$custom-light: #6b5185;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0f54",
  "rgb": {
    "r": 45,
    "g": 15,
    "b": 84
  },
  "hsl": {
    "h": 266.087,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26277,
    "c": 0.11559,
    "h": 297.5
  },
  "luminance": 0.0154
}

Semantic roles & 50–950 ramp

primary
#2D0F54
secondary
#658E31
accent
#ED3B9F
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2D0F54

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

Preview Lab → · Contrast checker → · Palette generator →

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