#2D105E#2D105E

#2D105E is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.4% C 0.127 H 292.9°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#2D105E
RGBrgb(45, 16, 94)
HSLhsl(262, 71%, 22%)
HSVhsv(262, 83%, 37%)
CMYKcmyk(52.1%, 83%, 0%, 63.1%)
CIE-LABlab(14.04, 33.43, -40.64)
CIE-LCHlch(14.04, 52.63, 309.44°)
OKLaboklab(27.41% 0.0493 -0.1167)
OKLCHoklch(27.41% 0.127 292.9)
XYZxyz(3.2873, 1.7365, 10.7495)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D105E #415E10
analogous
#101A5E #2D105E #54105E
triadic
#2D105E #5E2D10 #105E2D
tetradic
#2D105E #5E101A #415E10 #105E54
square
#2D105E #5E101A #415E10 #105E54
split-complementary
#2D105E #5E5410 #1A5E10
monochromatic
#0D041A #14072A #2D105E #461992 #5F22C7

Accessibility & contrast

On white

15.59
#2D105E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2D105E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D105E
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D105E#FFFFFF#000000##FFFFFF
##2D105E1.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002560
Deuteranopia (green-blind)
#00225D
Tritanopia (blue-blind)
#1D2637
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2d105e;
/* rgb */ color: rgb(45, 16, 94);
/* oklch */ color: oklch(27.4% 0.127 292.9);
Tailwind
colors: {
  custom: {
    50: '#6c528c',
    500: '#2d105e',
    950: '#000000',
  },
}
SCSS
$custom: #2d105e;
$custom-light: #6c528c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d105e",
  "rgb": {
    "r": 45,
    "g": 16,
    "b": 94
  },
  "hsl": {
    "h": 262.308,
    "s": 70.909,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27412,
    "c": 0.12666,
    "h": 292.9
  },
  "luminance": 0.01737
}

Semantic roles & 50–950 ramp

primary
#2D105E
secondary
#729733
accent
#EE3AAB
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2D105E

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

Preview Lab → · Contrast checker → · Palette generator →

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