#2D105B#2D105B

#2D105B is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.1% C 0.123 H 294.1°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#2D105B
RGBrgb(45, 16, 91)
HSLhsl(263, 70%, 21%)
HSVhsv(263, 82%, 36%)
CMYKcmyk(50.5%, 82.4%, 0%, 64.3%)
CIE-LABlab(13.73, 32.54, -39.14)
CIE-LCHlch(13.73, 50.90, 309.74°)
OKLaboklab(27.1% 0.0503 -0.1122)
OKLCHoklch(27.1% 0.123 294.1)
XYZxyz(3.1553, 1.6837, 10.0542)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D105B #3E5B10
analogous
#10185B #2D105B #52105B
triadic
#2D105B #5B2D10 #105B2D
tetradic
#2D105B #5B1018 #3E5B10 #105B52
square
#2D105B #5B1018 #3E5B10 #105B52
split-complementary
#2D105B #5B5210 #185B10
monochromatic
#0D051A #130727 #2D105B #47198F #6022C3

Accessibility & contrast

On white

15.71
#2D105B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D105B
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D105B#FFFFFF#000000##FFFFFF
##2D105B1.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245D
Deuteranopia (green-blind)
#00225A
Tritanopia (blue-blind)
#1F2535
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2d105b;
/* rgb */ color: rgb(45, 16, 91);
/* oklch */ color: oklch(27.1% 0.123 294.1);
Tailwind
colors: {
  custom: {
    50: '#6c528a',
    500: '#2d105b',
    950: '#000000',
  },
}
SCSS
$custom: #2d105b;
$custom-light: #6c528a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d105b",
  "rgb": {
    "r": 45,
    "g": 16,
    "b": 91
  },
  "hsl": {
    "h": 263.2,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27104,
    "c": 0.123,
    "h": 294.1
  },
  "luminance": 0.01684
}

Semantic roles & 50–950 ramp

primary
#2D105B
secondary
#6E9433
accent
#ED3BA8
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2D105B

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

Preview Lab → · Contrast checker → · Palette generator →

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