#2D105F#2D105F

#2D105F is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.5% C 0.128 H 292.5°. Best body text is #FFFFFF at 15.54:1 contrast (WCAG AA passes).

Color values

HEX#2D105F
RGBrgb(45, 16, 95)
HSLhsl(262, 71%, 22%)
HSVhsv(262, 83%, 37%)
CMYKcmyk(52.6%, 83.2%, 0%, 62.7%)
CIE-LABlab(14.14, 33.72, -41.14)
CIE-LCHlch(14.14, 53.20, 309.34°)
OKLaboklab(27.52% 0.049 -0.1181)
OKLCHoklch(27.52% 0.128 292.5)
XYZxyz(3.3325, 1.7546, 10.9873)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D105F #425F10
analogous
#101B5F #2D105F #55105F
triadic
#2D105F #5F2D10 #105F2D
tetradic
#2D105F #5F101B #425F10 #105F55
square
#2D105F #5F101B #425F10 #105F55
split-complementary
#2D105F #5F5510 #1B5F10
monochromatic
#0C041A #14072B #2D105F #461993 #5F22C8

Accessibility & contrast

On white

15.54
#2D105F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D105F
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D105F#FFFFFF#000000##FFFFFF
##2D105F1.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d105f;
/* rgb */ color: rgb(45, 16, 95);
/* oklch */ color: oklch(27.5% 0.128 292.5);
Tailwind
colors: {
  custom: {
    50: '#6c528d',
    500: '#2d105f',
    950: '#000000',
  },
}
SCSS
$custom: #2d105f;
$custom-light: #6c528d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d105f",
  "rgb": {
    "r": 45,
    "g": 16,
    "b": 95
  },
  "hsl": {
    "h": 262.025,
    "s": 71.171,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27516,
    "c": 0.12788,
    "h": 292.5
  },
  "luminance": 0.01755
}

Semantic roles & 50–950 ramp

primary
#2D105F
secondary
#739833
accent
#EE3AAC
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2D105F

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

Preview Lab → · Contrast checker → · Palette generator →

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