#2D1C87#2D1C87

#2D1C87 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.3% C 0.165 H 279.7°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#2D1C87
RGBrgb(45, 28, 135)
HSLhsl(250, 66%, 32%)
HSVhsv(250, 79%, 53%)
CMYKcmyk(66.7%, 79.3%, 0%, 47.1%)
CIE-LABlab(20.59, 39.93, -56.40)
CIE-LCHlch(20.59, 69.11, 305.30°)
OKLaboklab(33.31% 0.028 -0.1628)
OKLCHoklch(33.31% 0.165 279.7)
XYZxyz(5.8692, 3.1372, 23.2132)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1C87 #76871C
analogous
#1C4087 #2D1C87 #631C87
triadic
#2D1C87 #872D1C #1C872D
tetradic
#2D1C87 #871C40 #76871C #1C8763
square
#2D1C87 #871C40 #76871C #1C8763
split-complementary
#2D1C87 #87631C #40871C
monochromatic
#0B0722 #1C1154 #2D1C87 #3E27BA #5C45D8

Accessibility & contrast

On white

12.90
#2D1C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2D1C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1C87
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1C87#FFFFFF#000000##FFFFFF
##2D1C871.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1c87;
/* rgb */ color: rgb(45, 28, 135);
/* oklch */ color: oklch(33.3% 0.165 279.7);
Tailwind
colors: {
  custom: {
    50: '#735bab',
    500: '#2d1c87',
    950: '#000000',
  },
}
SCSS
$custom: #2d1c87;
$custom-light: #735bab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1c87",
  "rgb": {
    "r": 45,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 249.533,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33308,
    "c": 0.16521,
    "h": 279.7
  },
  "luminance": 0.03138
}

Semantic roles & 50–950 ramp

primary
#2D1C87
secondary
#A7BA45
accent
#E93FCE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1C87

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

Preview Lab → · Contrast checker → · Palette generator →

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