#2D104E#2D104E

#2D104E is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.107 H 300.3°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#2D104E
RGBrgb(45, 16, 78)
HSLhsl(268, 66%, 18%)
HSVhsv(268, 79%, 31%)
CMYKcmyk(42.3%, 79.5%, 0%, 69.4%)
CIE-LABlab(12.47, 28.75, -32.36)
CIE-LCHlch(12.47, 43.28, 311.62°)
OKLaboklab(25.83% 0.0539 -0.0923)
OKLCHoklch(25.83% 0.107 300.3)
XYZxyz(2.6423, 1.4785, 7.3524)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D104E #314E10
analogous
#10124E #2D104E #4C104E
triadic
#2D104E #4E2D10 #104E2D
tetradic
#2D104E #4E1012 #314E10 #104E4C
square
#2D104E #4E1012 #314E10 #104E4C
split-complementary
#2D104E #4E4C10 #124E10
monochromatic
#0F0519 #10061B #2D104E #4A1A81 #6825B4

Accessibility & contrast

On white

16.21
#2D104E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2D104E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D104E
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D104E#FFFFFF#000000##FFFFFF
##2D104E1.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002050
Deuteranopia (green-blind)
#00204D
Tritanopia (blue-blind)
#251F2E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d104e;
/* rgb */ color: rgb(45, 16, 78);
/* oklch */ color: oklch(25.8% 0.107 300.3);
Tailwind
colors: {
  custom: {
    50: '#6a5180',
    500: '#2d104e',
    950: '#000000',
  },
}
SCSS
$custom: #2d104e;
$custom-light: #6a5180;
$custom-dark: #000000;
JSON
{
  "hex": "#2d104e",
  "rgb": {
    "r": 45,
    "g": 16,
    "b": 78
  },
  "hsl": {
    "h": 268.065,
    "s": 65.957,
    "l": 18.431
  },
  "oklch": {
    "l": 0.25827,
    "c": 0.10691,
    "h": 300.3
  },
  "luminance": 0.01479
}

Semantic roles & 50–950 ramp

primary
#2D104E
secondary
#608832
accent
#E93F99
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D104E

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

Preview Lab → · Contrast checker → · Palette generator →

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