#2D1F87#2D1F87

#2D1F87 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.162 H 279.3°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#2D1F87
RGBrgb(45, 31, 135)
HSLhsl(248, 63%, 33%)
HSVhsv(248, 77%, 53%)
CMYKcmyk(66.7%, 77%, 0%, 47.1%)
CIE-LABlab(21.16, 38.30, -55.46)
CIE-LCHlch(21.16, 67.40, 304.63°)
OKLaboklab(33.71% 0.0261 -0.1601)
OKLCHoklch(33.71% 0.162 279.3)
XYZxyz(5.9439, 3.2867, 23.2381)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F87 #79871F
analogous
#1F4587 #2D1F87 #611F87
triadic
#2D1F87 #872D1F #1F872D
tetradic
#2D1F87 #871F45 #79871F #1F8761
square
#2D1F87 #871F45 #79871F #1F8761
split-complementary
#2D1F87 #87611F #45871F
monochromatic
#0C0823 #1C1455 #2D1F87 #3E2AB9 #5D4BD6

Accessibility & contrast

On white

12.67
#2D1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2D1F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F87
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F87#FFFFFF#000000##FFFFFF
##2D1F871.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#002F85
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d1f87;
/* rgb */ color: rgb(45, 31, 135);
/* oklch */ color: oklch(33.7% 0.162 279.3);
Tailwind
colors: {
  custom: {
    50: '#735dab',
    500: '#2d1f87',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f87;
$custom-light: #735dab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f87",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 248.077,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33709,
    "c": 0.16222,
    "h": 279.3
  },
  "luminance": 0.03287
}

Semantic roles & 50–950 ramp

primary
#2D1F87
secondary
#A9B84A
accent
#E642D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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