#2D105C#2D105C

#2D105C is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.2% C 0.124 H 293.7°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#2D105C
RGBrgb(45, 16, 92)
HSLhsl(263, 70%, 21%)
HSVhsv(263, 83%, 36%)
CMYKcmyk(51.1%, 82.6%, 0%, 63.9%)
CIE-LABlab(13.83, 32.84, -39.64)
CIE-LCHlch(13.83, 51.48, 309.64°)
OKLaboklab(27.21% 0.05 -0.1137)
OKLCHoklch(27.21% 0.124 293.7)
XYZxyz(3.1987, 1.7011, 10.2829)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D105C #3F5C10
analogous
#10195C #2D105C #53105C
triadic
#2D105C #5C2D10 #105C2D
tetradic
#2D105C #5C1019 #3F5C10 #105C53
square
#2D105C #5C1019 #3F5C10 #105C53
split-complementary
#2D105C #5C5310 #195C10
monochromatic
#0D051A #130728 #2D105C #461990 #6022C4

Accessibility & contrast

On white

15.67
#2D105C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D105C
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D105C#FFFFFF#000000##FFFFFF
##2D105C1.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d105c;
/* rgb */ color: rgb(45, 16, 92);
/* oklch */ color: oklch(27.2% 0.124 293.7);
Tailwind
colors: {
  custom: {
    50: '#6c528b',
    500: '#2d105c',
    950: '#000000',
  },
}
SCSS
$custom: #2d105c;
$custom-light: #6c528b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d105c",
  "rgb": {
    "r": 45,
    "g": 16,
    "b": 92
  },
  "hsl": {
    "h": 262.895,
    "s": 70.37,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27206,
    "c": 0.12422,
    "h": 293.7
  },
  "luminance": 0.01701
}

Semantic roles & 50–950 ramp

primary
#2D105C
secondary
#709533
accent
#ED3BA9
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2D105C

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

Preview Lab → · Contrast checker → · Palette generator →

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