#2D1F86#2D1F86

#2D1F86 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.161 H 279.4°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#2D1F86
RGBrgb(45, 31, 134)
HSLhsl(248, 62%, 32%)
HSVhsv(248, 77%, 53%)
CMYKcmyk(66.4%, 76.9%, 0%, 47.5%)
CIE-LABlab(21.05, 37.98, -55.00)
CIE-LCHlch(21.05, 66.84, 304.62°)
OKLaboklab(33.6% 0.0263 -0.1588)
OKLCHoklch(33.6% 0.161 279.4)
XYZxyz(5.8739, 3.2586, 22.8691)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F86 #78861F
analogous
#1F4586 #2D1F86 #601F86
triadic
#2D1F86 #862D1F #1F862D
tetradic
#2D1F86 #861F45 #78861F #1F8660
square
#2D1F86 #861F45 #78861F #1F8660
split-complementary
#2D1F86 #86601F #45861F
monochromatic
#0C0823 #1C1454 #2D1F86 #3E2AB8 #5D4AD5

Accessibility & contrast

On white

12.71
#2D1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2D1F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F86
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F86#FFFFFF#000000##FFFFFF
##2D1F861.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d1f86;
/* rgb */ color: rgb(45, 31, 134);
/* oklch */ color: oklch(33.6% 0.161 279.4);
Tailwind
colors: {
  custom: {
    50: '#735daa',
    500: '#2d1f86',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f86;
$custom-light: #735daa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f86",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 248.155,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33603,
    "c": 0.16095,
    "h": 279.4
  },
  "luminance": 0.03259
}

Semantic roles & 50–950 ramp

primary
#2D1F86
secondary
#A9B849
accent
#E542CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1F86

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

Preview Lab → · Contrast checker → · Palette generator →

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