#2D1F83#2D1F83

#2D1F83 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.157 H 279.9°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#2D1F83
RGBrgb(45, 31, 131)
HSLhsl(248, 62%, 32%)
HSVhsv(248, 76%, 51%)
CMYKcmyk(65.6%, 76.3%, 0%, 48.6%)
CIE-LABlab(20.74, 37.00, -53.63)
CIE-LCHlch(20.74, 65.16, 304.60°)
OKLaboklab(33.29% 0.0271 -0.1548)
OKLCHoklch(33.29% 0.157 279.9)
XYZxyz(5.6676, 3.1761, 21.7827)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F83 #75831F
analogous
#1F4383 #2D1F83 #5F1F83
triadic
#2D1F83 #832D1F #1F832D
tetradic
#2D1F83 #831F43 #75831F #1F835F
square
#2D1F83 #831F43 #75831F #1F835F
split-complementary
#2D1F83 #835F1F #43831F
monochromatic
#0B0820 #1C1352 #2D1F83 #3E2BB4 #5C49D4

Accessibility & contrast

On white

12.84
#2D1F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1F83
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F83#FFFFFF#000000##FFFFFF
##2D1F831.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1f83;
/* rgb */ color: rgb(45, 31, 131);
/* oklch */ color: oklch(33.3% 0.157 279.9);
Tailwind
colors: {
  custom: {
    50: '#725da8',
    500: '#2d1f83',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f83;
$custom-light: #725da8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f83",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 131
  },
  "hsl": {
    "h": 248.4,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33286,
    "c": 0.15714,
    "h": 279.9
  },
  "luminance": 0.03177
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D1F83

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

Preview Lab → · Contrast checker → · Palette generator →

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