#2D104B#2D104B

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

Color values

HEX#2D104B
RGBrgb(45, 16, 75)
HSLhsl(269, 65%, 18%)
HSVhsv(269, 79%, 29%)
CMYKcmyk(40%, 78.7%, 0%, 70.6%)
CIE-LABlab(12.20, 27.89, -30.73)
CIE-LCHlch(12.20, 41.49, 312.23°)
OKLaboklab(25.55% 0.0546 -0.0875)
OKLCHoklch(25.55% 0.103 301.9)
XYZxyz(2.5372, 1.4365, 6.7988)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D104B #2E4B10
analogous
#10104B #2D104B #4A104B
triadic
#2D104B #4B2D10 #104B2D
tetradic
#2D104B #4B1010 #2E4B10 #104B4A
square
#2D104B #4B1010 #2E4B10 #104B4A
split-complementary
#2D104B #4B4A10 #104B10
monochromatic
#0F0519 #0F0519 #2D104B #4B1B7D #6A26B0

Accessibility & contrast

On white

16.31
#2D104B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D104B
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D104B#FFFFFF#000000##FFFFFF
##2D104B1.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4D
Deuteranopia (green-blind)
#00204A
Tritanopia (blue-blind)
#271E2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d104b;
/* rgb */ color: rgb(45, 16, 75);
/* oklch */ color: oklch(25.5% 0.103 301.9);
Tailwind
colors: {
  custom: {
    50: '#69517e',
    500: '#2d104b',
    950: '#000000',
  },
}
SCSS
$custom: #2d104b;
$custom-light: #69517e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d104b",
  "rgb": {
    "r": 45,
    "g": 16,
    "b": 75
  },
  "hsl": {
    "h": 269.492,
    "s": 64.835,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25549,
    "c": 0.10315,
    "h": 301.9
  },
  "luminance": 0.01436
}

Semantic roles & 50–950 ramp

primary
#2D104B
secondary
#5C8532
accent
#E84095
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D104B

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

Preview Lab → · Contrast checker → · Palette generator →

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