#2D1D7F#2D1D7F

#2D1D7F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.154 H 281.0°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#2D1D7F
RGBrgb(45, 29, 127)
HSLhsl(250, 63%, 31%)
HSVhsv(250, 77%, 50%)
CMYKcmyk(64.6%, 77.2%, 0%, 50.2%)
CIE-LABlab(19.92, 36.82, -52.45)
CIE-LCHlch(19.92, 64.08, 305.07°)
OKLaboklab(32.58% 0.0294 -0.1513)
OKLCHoklch(32.58% 0.154 281)
XYZxyz(5.3511, 2.9685, 20.3656)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1D7F #6F7F1D
analogous
#1D3E7F #2D1D7F #5E1D7F
triadic
#2D1D7F #7F2D1D #1D7F2D
tetradic
#2D1D7F #7F1D3E #6F7F1D #1D7F5E
square
#2D1D7F #7F1D3E #6F7F1D #1D7F5E
split-complementary
#2D1D7F #7F5E1D #3E7F1D
monochromatic
#0A061B #1B124D #2D1D7F #3F28B1 #5A42D4

Accessibility & contrast

On white

13.18
#2D1D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1D7F
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1D7F#FFFFFF#000000##FFFFFF
##2D1D7F1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d1d7f;
/* rgb */ color: rgb(45, 29, 127);
/* oklch */ color: oklch(32.6% 0.154 281.0);
Tailwind
colors: {
  custom: {
    50: '#725ba5',
    500: '#2d1d7f',
    950: '#000000',
  },
}
SCSS
$custom: #2d1d7f;
$custom-light: #725ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1d7f",
  "rgb": {
    "r": 45,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 249.796,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32582,
    "c": 0.15416,
    "h": 281
  },
  "luminance": 0.02969
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D1D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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