#2D106A#2D106A

#2D106A is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.141 H 288.6°. Best body text is #FFFFFF at 15.07:1 contrast (WCAG AA passes).

Color values

HEX#2D106A
RGBrgb(45, 16, 106)
HSLhsl(259, 74%, 24%)
HSVhsv(259, 85%, 42%)
CMYKcmyk(57.5%, 84.9%, 0%, 58.4%)
CIE-LABlab(15.32, 36.97, -46.48)
CIE-LCHlch(15.32, 59.39, 308.50°)
OKLaboklab(28.69% 0.0451 -0.1337)
OKLCHoklch(28.69% 0.141 288.6)
XYZxyz(3.8682, 1.9689, 13.8091)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D106A #4D6A10
analogous
#10206A #2D106A #5A106A
triadic
#2D106A #6A2D10 #106A2D
tetradic
#2D106A #6A1020 #4D6A10 #106A5A
square
#2D106A #6A1020 #4D6A10 #106A5A
split-complementary
#2D106A #6A5A10 #206A10
monochromatic
#0B041B #160835 #2D106A #44189F #5A20D4

Accessibility & contrast

On white

15.07
#2D106A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2D106A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D106A
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D106A#FFFFFF#000000##FFFFFF
##2D106A1.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286C
Deuteranopia (green-blind)
#002468
Tritanopia (blue-blind)
#142B3E
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2d106a;
/* rgb */ color: rgb(45, 16, 106);
/* oklch */ color: oklch(28.7% 0.141 288.6);
Tailwind
colors: {
  custom: {
    50: '#6e5396',
    500: '#2d106a',
    950: '#000000',
  },
}
SCSS
$custom: #2d106a;
$custom-light: #6e5396;
$custom-dark: #000000;
JSON
{
  "hex": "#2d106a",
  "rgb": {
    "r": 45,
    "g": 16,
    "b": 106
  },
  "hsl": {
    "h": 259.333,
    "s": 73.77,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28692,
    "c": 0.14114,
    "h": 288.6
  },
  "luminance": 0.01969
}

Semantic roles & 50–950 ramp

primary
#2D106A
secondary
#7FA234
accent
#F037B5
background
#F7F4F9
surface
#EDE7F2
border
#C8C3CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D106A

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

Preview Lab → · Contrast checker → · Palette generator →

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