#2D1269#2D1269

#2D1269 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.138 H 288.6°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#2D1269
RGBrgb(45, 18, 105)
HSLhsl(259, 71%, 24%)
HSVhsv(259, 83%, 41%)
CMYKcmyk(57.1%, 82.9%, 0%, 58.8%)
CIE-LABlab(15.54, 35.73, -45.46)
CIE-LCHlch(15.54, 57.82, 308.16°)
OKLaboklab(28.81% 0.044 -0.1308)
OKLCHoklch(28.81% 0.138 288.6)
XYZxyz(3.8475, 2.0102, 13.5471)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1269 #4E6912
analogous
#122269 #2D1269 #591269
triadic
#2D1269 #692D12 #12692D
tetradic
#2D1269 #691222 #4E6912 #126959
square
#2D1269 #691222 #4E6912 #126959
split-complementary
#2D1269 #695912 #226912
monochromatic
#0B041A #170935 #2D1269 #431B9D #5A24D1

Accessibility & contrast

On white

14.98
#2D1269 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2D1269 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1269
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1269#FFFFFF#000000##FFFFFF
##2D12691.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296B
Deuteranopia (green-blind)
#002567
Tritanopia (blue-blind)
#142B3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2d1269;
/* rgb */ color: rgb(45, 18, 105);
/* oklch */ color: oklch(28.8% 0.138 288.6);
Tailwind
colors: {
  custom: {
    50: '#6e5495',
    500: '#2d1269',
    950: '#000000',
  },
}
SCSS
$custom: #2d1269;
$custom-light: #6e5495;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1269",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 105
  },
  "hsl": {
    "h": 258.621,
    "s": 70.732,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28811,
    "c": 0.138,
    "h": 288.6
  },
  "luminance": 0.0201
}

Semantic roles & 50–950 ramp

primary
#2D1269
secondary
#80A136
accent
#ED3AB6
background
#F7F4F9
surface
#EDE8F2
border
#C8C4CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D1269

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

Preview Lab → · Contrast checker → · Palette generator →

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