#2D1F84#2D1F84

#2D1F84 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.158 H 279.7°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#2D1F84
RGBrgb(45, 31, 132)
HSLhsl(248, 62%, 32%)
HSVhsv(248, 77%, 52%)
CMYKcmyk(65.9%, 76.5%, 0%, 48.2%)
CIE-LABlab(20.84, 37.32, -54.09)
CIE-LCHlch(20.84, 65.72, 304.61°)
OKLaboklab(33.39% 0.0268 -0.1561)
OKLCHoklch(33.39% 0.158 279.7)
XYZxyz(5.7357, 3.2034, 22.1414)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F84 #76841F
analogous
#1F4484 #2D1F84 #601F84
triadic
#2D1F84 #842D1F #1F842D
tetradic
#2D1F84 #841F44 #76841F #1F8460
square
#2D1F84 #841F44 #76841F #1F8460
split-complementary
#2D1F84 #84601F #44841F
monochromatic
#0B0821 #1C1352 #2D1F84 #3E2BB6 #5C49D4

Accessibility & contrast

On white

12.80
#2D1F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2D1F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F84
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F84#FFFFFF#000000##FFFFFF
##2D1F841.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003687
Deuteranopia (green-blind)
#002E82
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d1f84;
/* rgb */ color: rgb(45, 31, 132);
/* oklch */ color: oklch(33.4% 0.158 279.7);
Tailwind
colors: {
  custom: {
    50: '#725da9',
    500: '#2d1f84',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f84;
$custom-light: #725da9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f84",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 248.317,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33391,
    "c": 0.15841,
    "h": 279.7
  },
  "luminance": 0.03204
}

Semantic roles & 50–950 ramp

primary
#2D1F84
secondary
#A7B748
accent
#E543CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1F84

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

Preview Lab → · Contrast checker → · Palette generator →

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