#2D1F79#2D1F79

#2D1F79 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.144 H 281.7°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#2D1F79
RGBrgb(45, 31, 121)
HSLhsl(249, 59%, 30%)
HSVhsv(249, 74%, 47%)
CMYKcmyk(62.8%, 74.4%, 0%, 52.5%)
CIE-LABlab(19.71, 33.69, -48.97)
CIE-LCHlch(19.71, 59.44, 304.53°)
OKLaboklab(32.25% 0.0293 -0.1411)
OKLCHoklch(32.25% 0.144 281.7)
XYZxyz(5.0223, 2.9180, 18.3840)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F79 #6B791F
analogous
#1F3E79 #2D1F79 #5A1F79
triadic
#2D1F79 #792D1F #1F792D
tetradic
#2D1F79 #791F3E #6B791F #1F795A
square
#2D1F79 #791F3E #6B791F #1F795A
split-complementary
#2D1F79 #795A1F #3E791F
monochromatic
#090618 #1B1348 #2D1F79 #3F2BAA #5943CF

Accessibility & contrast

On white

13.26
#2D1F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2D1F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F79
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F79#FFFFFF#000000##FFFFFF
##2D1F791.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#002C77
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d1f79;
/* rgb */ color: rgb(45, 31, 121);
/* oklch */ color: oklch(32.3% 0.144 281.7);
Tailwind
colors: {
  custom: {
    50: '#705ca1',
    500: '#2d1f79',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f79;
$custom-light: #705ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f79",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 249.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3225,
    "c": 0.14417,
    "h": 281.7
  },
  "luminance": 0.02918
}

Semantic roles & 50–950 ramp

primary
#2D1F79
secondary
#9DAC47
accent
#E245CA
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2D1F79

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

Preview Lab → · Contrast checker → · Palette generator →

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