#2D1E87#2D1E87

#2D1E87 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.6% C 0.163 H 279.4°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#2D1E87
RGBrgb(45, 30, 135)
HSLhsl(249, 64%, 32%)
HSVhsv(249, 78%, 53%)
CMYKcmyk(66.7%, 77.8%, 0%, 47.1%)
CIE-LABlab(20.96, 38.86, -55.78)
CIE-LCHlch(20.96, 67.98, 304.86°)
OKLaboklab(33.57% 0.0267 -0.161)
OKLCHoklch(33.57% 0.163 279.4)
XYZxyz(5.9182, 3.2352, 23.2296)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1E87 #78871E
analogous
#1E4487 #2D1E87 #611E87
triadic
#2D1E87 #872D1E #1E872D
tetradic
#2D1E87 #871E44 #78871E #1E8761
square
#2D1E87 #871E44 #78871E #1E8761
split-complementary
#2D1E87 #87611E #44871E
monochromatic
#0C0823 #1C1355 #2D1E87 #3E29B9 #5D49D7

Accessibility & contrast

On white

12.75
#2D1E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2D1E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1E87
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1E87#FFFFFF#000000##FFFFFF
##2D1E871.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002E85
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d1e87;
/* rgb */ color: rgb(45, 30, 135);
/* oklch */ color: oklch(33.6% 0.163 279.4);
Tailwind
colors: {
  custom: {
    50: '#735cab',
    500: '#2d1e87',
    950: '#000000',
  },
}
SCSS
$custom: #2d1e87;
$custom-light: #735cab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1e87",
  "rgb": {
    "r": 45,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 248.571,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33572,
    "c": 0.16323,
    "h": 279.4
  },
  "luminance": 0.03236
}

Semantic roles & 50–950 ramp

primary
#2D1E87
secondary
#A9B948
accent
#E741CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1E87

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

Preview Lab → · Contrast checker → · Palette generator →

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