#2D1F82#2D1F82

#2D1F82 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.156 H 280.1°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#2D1F82
RGBrgb(45, 31, 130)
HSLhsl(248, 61%, 32%)
HSVhsv(248, 76%, 51%)
CMYKcmyk(65.4%, 76.2%, 0%, 49%)
CIE-LABlab(20.63, 36.67, -53.17)
CIE-LCHlch(20.63, 64.59, 304.59°)
OKLaboklab(33.18% 0.0273 -0.1534)
OKLCHoklch(33.18% 0.156 280.1)
XYZxyz(5.6002, 3.1491, 21.4275)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F82 #74821F
analogous
#1F4382 #2D1F82 #5F1F82
triadic
#2D1F82 #822D1F #1F822D
tetradic
#2D1F82 #821F43 #74821F #1F825F
square
#2D1F82 #821F43 #74821F #1F825F
split-complementary
#2D1F82 #825F1F #43821F
monochromatic
#0B071F #1C1351 #2D1F82 #3E2BB3 #5C48D3

Accessibility & contrast

On white

12.88
#2D1F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1F82
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F82#FFFFFF#000000##FFFFFF
##2D1F821.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#002E80
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d1f82;
/* rgb */ color: rgb(45, 31, 130);
/* oklch */ color: oklch(33.2% 0.156 280.1);
Tailwind
colors: {
  custom: {
    50: '#725da7',
    500: '#2d1f82',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f82;
$custom-light: #725da7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f82",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 248.485,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3318,
    "c": 0.15585,
    "h": 280.1
  },
  "luminance": 0.0315
}

Semantic roles & 50–950 ramp

primary
#2D1F82
secondary
#A5B548
accent
#E543CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1F82

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

Preview Lab → · Contrast checker → · Palette generator →

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