#2D0C51#2D0C51

#2D0C51 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.115 H 299.7°. Best body text is #FFFFFF at 16.37:1 contrast (WCAG AA passes).

Color values

HEX#2D0C51
RGBrgb(45, 12, 81)
HSLhsl(269, 74%, 18%)
HSVhsv(269, 85%, 32%)
CMYKcmyk(44.4%, 85.2%, 0%, 68.2%)
CIE-LABlab(12.06, 31.60, -35.09)
CIE-LCHlch(12.06, 47.22, 312.00°)
OKLaboklab(25.62% 0.0571 -0.1003)
OKLCHoklch(25.62% 0.115 299.7)
XYZxyz(2.6985, 1.4149, 7.9139)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0C51 #30510C
analogous
#0C0D51 #2D0C51 #4F0C51
triadic
#2D0C51 #512D0C #0C512D
tetradic
#2D0C51 #510C0D #30510C #0C514F
square
#2D0C51 #510C0D #30510C #0C514F
split-complementary
#2D0C51 #514F0C #0D510C
monochromatic
#0F041B #0F041C #2D0C51 #4B1486 #681CBC

Accessibility & contrast

On white

16.37
#2D0C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D0C51
16.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0C51#FFFFFF#000000##FFFFFF
##2D0C511.0016.371.2816.37
#FFFFFF16.371.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F53
Deuteranopia (green-blind)
#001F50
Tritanopia (blue-blind)
#241F2E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d0c51;
/* rgb */ color: rgb(45, 12, 81);
/* oklch */ color: oklch(25.6% 0.115 299.7);
Tailwind
colors: {
  custom: {
    50: '#6a4f82',
    500: '#2d0c51',
    950: '#000000',
  },
}
SCSS
$custom: #2d0c51;
$custom-light: #6a4f82;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0c51",
  "rgb": {
    "r": 45,
    "g": 12,
    "b": 81
  },
  "hsl": {
    "h": 268.696,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25625,
    "c": 0.11548,
    "h": 299.7
  },
  "luminance": 0.01415
}

Semantic roles & 50–950 ramp

primary
#2D0C51
secondary
#5E8C2C
accent
#F13798
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D0C51

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

Preview Lab → · Contrast checker → · Palette generator →

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