#2D1D8E#2D1D8E

#2D1D8E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.173 H 278.5°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#2D1D8E
RGBrgb(45, 29, 142)
HSLhsl(248, 66%, 34%)
HSVhsv(248, 80%, 56%)
CMYKcmyk(68.3%, 79.6%, 0%, 44.3%)
CIE-LABlab(21.54, 41.63, -59.20)
CIE-LCHlch(21.54, 72.38, 305.12°)
OKLaboklab(34.2% 0.0255 -0.171)
OKLCHoklch(34.2% 0.173 278.5)
XYZxyz(6.4025, 3.3891, 25.9027)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1D8E #7E8E1D
analogous
#1D458E #2D1D8E #651D8E
triadic
#2D1D8E #8E2D1D #1D8E2D
tetradic
#2D1D8E #8E1D45 #7E8E1D #1D8E65
square
#2D1D8E #8E1D45 #7E8E1D #1D8E65
split-complementary
#2D1D8E #8E651D #458E1D
monochromatic
#0D0828 #1D135B #2D1D8E #3D27C1 #5F4BDA

Accessibility & contrast

On white

12.51
#2D1D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2D1D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1D8E
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1D8E#FFFFFF#000000##FFFFFF
##2D1D8E1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d1d8e;
/* rgb */ color: rgb(45, 29, 142);
/* oklch */ color: oklch(34.2% 0.173 278.5);
Tailwind
colors: {
  custom: {
    50: '#755cb0',
    500: '#2d1d8e',
    950: '#000000',
  },
}
SCSS
$custom: #2d1d8e;
$custom-light: #755cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1d8e",
  "rgb": {
    "r": 45,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 248.496,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34204,
    "c": 0.17288,
    "h": 278.5
  },
  "luminance": 0.0339
}

Semantic roles & 50–950 ramp

primary
#2D1D8E
secondary
#ACBD4A
accent
#E93FD1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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