#2D0F56#2D0F56

#2D0F56 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.118 H 296.5°. Best body text is #FFFFFF at 15.98:1 contrast (WCAG AA passes).

Color values

HEX#2D0F56
RGBrgb(45, 15, 86)
HSLhsl(265, 70%, 20%)
HSVhsv(265, 83%, 34%)
CMYKcmyk(47.7%, 82.6%, 0%, 66.3%)
CIE-LABlab(13.05, 31.58, -36.87)
CIE-LCHlch(13.05, 48.54, 310.58°)
OKLaboklab(26.48% 0.0528 -0.1056)
OKLCHoklch(26.48% 0.118 296.5)
XYZxyz(2.9323, 1.5714, 8.9511)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0F56 #38560F
analogous
#0F1556 #2D0F56 #510F56
triadic
#2D0F56 #562D0F #0F562D
tetradic
#2D0F56 #560F15 #38560F #0F5651
square
#2D0F56 #560F15 #38560F #0F5651
split-complementary
#2D0F56 #56510F #15560F
monochromatic
#0E051A #120622 #2D0F56 #48188A #6421BE

Accessibility & contrast

On white

15.98
#2D0F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D0F56
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0F56#FFFFFF#000000##FFFFFF
##2D0F561.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002258
Deuteranopia (green-blind)
#002155
Tritanopia (blue-blind)
#222232
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2d0f56;
/* rgb */ color: rgb(45, 15, 86);
/* oklch */ color: oklch(26.5% 0.118 296.5);
Tailwind
colors: {
  custom: {
    50: '#6b5186',
    500: '#2d0f56',
    950: '#000000',
  },
}
SCSS
$custom: #2d0f56;
$custom-light: #6b5186;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0f56",
  "rgb": {
    "r": 45,
    "g": 15,
    "b": 86
  },
  "hsl": {
    "h": 265.352,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26476,
    "c": 0.11804,
    "h": 296.5
  },
  "luminance": 0.01571
}

Semantic roles & 50–950 ramp

primary
#2D0F56
secondary
#689031
accent
#ED3BA2
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2D0F56

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

Preview Lab → · Contrast checker → · Palette generator →

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