#2D104A#2D104A

#2D104A is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.102 H 302.5°. Best body text is #FFFFFF at 16.35:1 contrast (WCAG AA passes).

Color values

HEX#2D104A
RGBrgb(45, 16, 74)
HSLhsl(270, 64%, 18%)
HSVhsv(270, 78%, 29%)
CMYKcmyk(39.2%, 78.4%, 0%, 71%)
CIE-LABlab(12.11, 27.60, -30.18)
CIE-LCHlch(12.11, 40.90, 312.44°)
OKLaboklab(25.46% 0.0548 -0.0859)
OKLCHoklch(25.46% 0.102 302.5)
XYZxyz(2.5032, 1.4229, 6.6200)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D104A #2D4A10
analogous
#10104A #2D104A #4A104A
triadic
#2D104A #4A2D10 #104A2D
tetradic
#2D104A #4A1010 #2D4A10 #104A4A
square
#2D104A #4A1010 #2D4A10 #104A4A
split-complementary
#2D104A #4A4A10 #104A10
monochromatic
#0F0519 #0F0519 #2D104A #4C1B7C #6A26AF

Accessibility & contrast

On white

16.35
#2D104A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2D104A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D104A
16.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D104A#FFFFFF#000000##FFFFFF
##2D104A1.0016.351.2816.35
#FFFFFF16.351.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4C
Deuteranopia (green-blind)
#002049
Tritanopia (blue-blind)
#271E2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d104a;
/* rgb */ color: rgb(45, 16, 74);
/* oklch */ color: oklch(25.5% 0.102 302.5);
Tailwind
colors: {
  custom: {
    50: '#69517d',
    500: '#2d104a',
    950: '#000000',
  },
}
SCSS
$custom: #2d104a;
$custom-light: #69517d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d104a",
  "rgb": {
    "r": 45,
    "g": 16,
    "b": 74
  },
  "hsl": {
    "h": 270,
    "s": 64.444,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25458,
    "c": 0.1019,
    "h": 302.5
  },
  "luminance": 0.01423
}

Semantic roles & 50–950 ramp

primary
#2D104A
secondary
#5B8432
accent
#E74094
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D104A

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

Preview Lab → · Contrast checker → · Palette generator →

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