#2D1D7E#2D1D7E

#2D1D7E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.153 H 281.2°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#2D1D7E
RGBrgb(45, 29, 126)
HSLhsl(250, 63%, 30%)
HSVhsv(250, 77%, 49%)
CMYKcmyk(64.3%, 77%, 0%, 50.6%)
CIE-LABlab(19.81, 36.49, -51.99)
CIE-LCHlch(19.81, 63.52, 305.07°)
OKLaboklab(32.48% 0.0297 -0.15)
OKLCHoklch(32.48% 0.153 281.2)
XYZxyz(5.2863, 2.9426, 20.0240)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1D7E #6E7E1D
analogous
#1D3D7E #2D1D7E #5D1D7E
triadic
#2D1D7E #7E2D1D #1D7E2D
tetradic
#2D1D7E #7E1D3D #6E7E1D #1D7E5D
square
#2D1D7E #7E1D3D #6E7E1D #1D7E5D
split-complementary
#2D1D7E #7E5D1D #3D7E1D
monochromatic
#09061B #1B124C #2D1D7E #3F28B0 #5A42D3

Accessibility & contrast

On white

13.22
#2D1D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2D1D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1D7E
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1D7E#FFFFFF#000000##FFFFFF
##2D1D7E1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d1d7e;
/* rgb */ color: rgb(45, 29, 126);
/* oklch */ color: oklch(32.5% 0.153 281.2);
Tailwind
colors: {
  custom: {
    50: '#715ba4',
    500: '#2d1d7e',
    950: '#000000',
  },
}
SCSS
$custom: #2d1d7e;
$custom-light: #715ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1d7e",
  "rgb": {
    "r": 45,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 249.897,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32476,
    "c": 0.15288,
    "h": 281.2
  },
  "luminance": 0.02943
}

Semantic roles & 50–950 ramp

primary
#2D1D7E
secondary
#A0B145
accent
#E642CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D1D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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