#2D105D#2D105D

#2D105D is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.3% C 0.125 H 293.3°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#2D105D
RGBrgb(45, 16, 93)
HSLhsl(263, 71%, 21%)
HSVhsv(263, 83%, 36%)
CMYKcmyk(51.6%, 82.8%, 0%, 63.5%)
CIE-LABlab(13.94, 33.13, -40.14)
CIE-LCHlch(13.94, 52.05, 309.53°)
OKLaboklab(27.31% 0.0496 -0.1152)
OKLCHoklch(27.31% 0.125 293.3)
XYZxyz(3.2427, 1.7187, 10.5147)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D105D #405D10
analogous
#101A5D #2D105D #54105D
triadic
#2D105D #5D2D10 #105D2D
tetradic
#2D105D #5D101A #405D10 #105D54
square
#2D105D #5D101A #405D10 #105D54
split-complementary
#2D105D #5D5410 #1A5D10
monochromatic
#0D041A #140729 #2D105D #461991 #6022C5

Accessibility & contrast

On white

15.63
#2D105D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2D105D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D105D
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D105D#FFFFFF#000000##FFFFFF
##2D105D1.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245F
Deuteranopia (green-blind)
#00225C
Tritanopia (blue-blind)
#1E2536
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2d105d;
/* rgb */ color: rgb(45, 16, 93);
/* oklch */ color: oklch(27.3% 0.125 293.3);
Tailwind
colors: {
  custom: {
    50: '#6c528c',
    500: '#2d105d',
    950: '#000000',
  },
}
SCSS
$custom: #2d105d;
$custom-light: #6c528c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d105d",
  "rgb": {
    "r": 45,
    "g": 16,
    "b": 93
  },
  "hsl": {
    "h": 262.597,
    "s": 70.642,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27309,
    "c": 0.12544,
    "h": 293.3
  },
  "luminance": 0.01719
}

Semantic roles & 50–950 ramp

primary
#2D105D
secondary
#719633
accent
#ED3AAA
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2D105D

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

Preview Lab → · Contrast checker → · Palette generator →

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