#2D104C#2D104C

#2D104C is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.6% C 0.104 H 301.4°. Best body text is #FFFFFF at 16.28:1 contrast (WCAG AA passes).

Color values

HEX#2D104C
RGBrgb(45, 16, 76)
HSLhsl(269, 65%, 18%)
HSVhsv(269, 79%, 30%)
CMYKcmyk(40.8%, 78.9%, 0%, 70.2%)
CIE-LABlab(12.29, 28.17, -31.27)
CIE-LCHlch(12.29, 42.09, 312.01°)
OKLaboklab(25.64% 0.0543 -0.0892)
OKLCHoklch(25.64% 0.104 301.4)
XYZxyz(2.5717, 1.4503, 6.9805)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D104C #2F4C10
analogous
#10114C #2D104C #4B104C
triadic
#2D104C #4C2D10 #104C2D
tetradic
#2D104C #4C1011 #2F4C10 #104C4B
square
#2D104C #4C1011 #2F4C10 #104C4B
split-complementary
#2D104C #4C4B10 #114C10
monochromatic
#0F0519 #0F0519 #2D104C #4B1B7F #6925B1

Accessibility & contrast

On white

16.28
#2D104C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D104C
16.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D104C#FFFFFF#000000##FFFFFF
##2D104C1.0016.281.2916.28
#FFFFFF16.281.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204E
Deuteranopia (green-blind)
#00204B
Tritanopia (blue-blind)
#261F2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d104c;
/* rgb */ color: rgb(45, 16, 76);
/* oklch */ color: oklch(25.6% 0.104 301.4);
Tailwind
colors: {
  custom: {
    50: '#69517f',
    500: '#2d104c',
    950: '#000000',
  },
}
SCSS
$custom: #2d104c;
$custom-light: #69517f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d104c",
  "rgb": {
    "r": 45,
    "g": 16,
    "b": 76
  },
  "hsl": {
    "h": 269,
    "s": 65.217,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25641,
    "c": 0.10441,
    "h": 301.4
  },
  "luminance": 0.0145
}

Semantic roles & 50–950 ramp

primary
#2D104C
secondary
#5D8632
accent
#E84097
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D104C

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

Preview Lab → · Contrast checker → · Palette generator →

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