#2D1F81#2D1F81

#2D1F81 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.155 H 280.3°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#2D1F81
RGBrgb(45, 31, 129)
HSLhsl(249, 61%, 31%)
HSVhsv(249, 76%, 51%)
CMYKcmyk(65.1%, 76%, 0%, 49.4%)
CIE-LABlab(20.53, 36.34, -52.71)
CIE-LCHlch(20.53, 64.03, 304.58°)
OKLaboklab(33.08% 0.0275 -0.1521)
OKLCHoklch(33.08% 0.155 280.3)
XYZxyz(5.5334, 3.1224, 21.0757)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F81 #73811F
analogous
#1F4281 #2D1F81 #5E1F81
triadic
#2D1F81 #812D1F #1F812D
tetradic
#2D1F81 #811F42 #73811F #1F815E
square
#2D1F81 #811F42 #73811F #1F815E
split-complementary
#2D1F81 #815E1F #42811F
monochromatic
#0B071E #1C1350 #2D1F81 #3E2BB2 #5B47D3

Accessibility & contrast

On white

12.93
#2D1F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2D1F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F81
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F81#FFFFFF#000000##FFFFFF
##2D1F811.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#002E7F
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2d1f81;
/* rgb */ color: rgb(45, 31, 129);
/* oklch */ color: oklch(33.1% 0.155 280.3);
Tailwind
colors: {
  custom: {
    50: '#725da7',
    500: '#2d1f81',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f81;
$custom-light: #725da7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f81",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 129
  },
  "hsl": {
    "h": 248.571,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33076,
    "c": 0.15457,
    "h": 280.3
  },
  "luminance": 0.03123
}

Semantic roles & 50–950 ramp

primary
#2D1F81
secondary
#A4B448
accent
#E443CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D1F81

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

Preview Lab → · Contrast checker → · Palette generator →

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