#2D0B56#2D0B56

#2D0B56 is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.0% C 0.122 H 297.4°. Best body text is #FFFFFF at 16.23:1 contrast (WCAG AA passes).

Color values

HEX#2D0B56
RGBrgb(45, 11, 86)
HSLhsl(267, 77%, 19%)
HSVhsv(267, 87%, 34%)
CMYKcmyk(47.7%, 87.2%, 0%, 66.3%)
CIE-LABlab(12.41, 33.44, -37.92)
CIE-LCHlch(12.41, 50.56, 311.40°)
OKLaboklab(26.03% 0.0563 -0.1086)
OKLCHoklch(26.03% 0.122 297.4)
XYZxyz(2.8811, 1.4691, 8.9341)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0B56 #34560B
analogous
#0B0F56 #2D0B56 #530B56
triadic
#2D0B56 #562D0B #0B562D
tetradic
#2D0B56 #560B0F #34560B #0B5653
square
#2D0B56 #560B0F #34560B #0B5653
split-complementary
#2D0B56 #56530B #0F560B
monochromatic
#0E031B #110420 #2D0B56 #49128C #6619C3

Accessibility & contrast

On white

16.23
#2D0B56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2D0B56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0B56
16.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0B56#FFFFFF#000000##FFFFFF
##2D0B561.0016.231.2916.23
#FFFFFF16.231.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002158
Deuteranopia (green-blind)
#001F55
Tritanopia (blue-blind)
#222031
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d0b56;
/* rgb */ color: rgb(45, 11, 86);
/* oklch */ color: oklch(26.0% 0.122 297.4);
Tailwind
colors: {
  custom: {
    50: '#6b4f86',
    500: '#2d0b56',
    950: '#000000',
  },
}
SCSS
$custom: #2d0b56;
$custom-light: #6b4f86;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0b56",
  "rgb": {
    "r": 45,
    "g": 11,
    "b": 86
  },
  "hsl": {
    "h": 267.2,
    "s": 77.32,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26026,
    "c": 0.12237,
    "h": 297.4
  },
  "luminance": 0.01469
}

Semantic roles & 50–950 ramp

primary
#2D0B56
secondary
#63912B
accent
#F4349D
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2D0B56

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

Preview Lab → · Contrast checker → · Palette generator →

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