#2D104D#2D104D

#2D104D is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.106 H 300.8°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#2D104D
RGBrgb(45, 16, 77)
HSLhsl(269, 66%, 18%)
HSVhsv(269, 79%, 30%)
CMYKcmyk(41.6%, 79.2%, 0%, 69.8%)
CIE-LABlab(12.38, 28.46, -31.82)
CIE-LCHlch(12.38, 42.69, 311.81°)
OKLaboklab(25.73% 0.0541 -0.0907)
OKLCHoklch(25.73% 0.106 300.8)
XYZxyz(2.6067, 1.4643, 7.1650)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D104D #304D10
analogous
#10114D #2D104D #4B104D
triadic
#2D104D #4D2D10 #104D2D
tetradic
#2D104D #4D1011 #304D10 #104D4B
square
#2D104D #4D1011 #304D10 #104D4B
split-complementary
#2D104D #4D4B10 #114D10
monochromatic
#0F0519 #0F051A #2D104D #4B1B80 #6825B2

Accessibility & contrast

On white

16.24
#2D104D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2D104D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D104D
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D104D#FFFFFF#000000##FFFFFF
##2D104D1.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204F
Deuteranopia (green-blind)
#00204C
Tritanopia (blue-blind)
#261F2D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d104d;
/* rgb */ color: rgb(45, 16, 77);
/* oklch */ color: oklch(25.7% 0.106 300.8);
Tailwind
colors: {
  custom: {
    50: '#6a517f',
    500: '#2d104d',
    950: '#000000',
  },
}
SCSS
$custom: #2d104d;
$custom-light: #6a517f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d104d",
  "rgb": {
    "r": 45,
    "g": 16,
    "b": 77
  },
  "hsl": {
    "h": 268.525,
    "s": 65.591,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25734,
    "c": 0.10566,
    "h": 300.8
  },
  "luminance": 0.01464
}

Semantic roles & 50–950 ramp

primary
#2D104D
secondary
#5E8732
accent
#E93F98
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D104D

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

Preview Lab → · Contrast checker → · Palette generator →

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