#2D1E7D#2D1E7D

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

Color values

HEX#2D1E7D
RGBrgb(45, 30, 125)
HSLhsl(249, 61%, 30%)
HSVhsv(249, 76%, 49%)
CMYKcmyk(64%, 76%, 0%, 51%)
CIE-LABlab(19.91, 35.60, -51.19)
CIE-LCHlch(19.91, 62.35, 304.81°)
OKLaboklab(32.51% 0.0292 -0.1476)
OKLCHoklch(32.51% 0.151 281.2)
XYZxyz(5.2470, 2.9667, 19.6942)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1E7D #6E7D1E
analogous
#1E3E7D #2D1E7D #5C1E7D
triadic
#2D1E7D #7D2D1E #1E7D2D
tetradic
#2D1E7D #7D1E3E #6E7D1E #1E7D5C
square
#2D1E7D #7D1E3E #6E7D1E #1E7D5C
split-complementary
#2D1E7D #7D5C1E #3E7D1E
monochromatic
#09061A #1B124C #2D1E7D #3F2AAE #5A43D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D1E7D#FFFFFF#000000##FFFFFF
##2D1E7D1.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)
#003380
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d1e7d;
/* rgb */ color: rgb(45, 30, 125);
/* oklch */ color: oklch(32.5% 0.151 281.2);
Tailwind
colors: {
  custom: {
    50: '#715ca4',
    500: '#2d1e7d',
    950: '#000000',
  },
}
SCSS
$custom: #2d1e7d;
$custom-light: #715ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1e7d",
  "rgb": {
    "r": 45,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 249.474,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32514,
    "c": 0.15051,
    "h": 281.2
  },
  "luminance": 0.02967
}

Semantic roles & 50–950 ramp

primary
#2D1E7D
secondary
#A0B046
accent
#E443CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D1E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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