#2D1F78#2D1F78

#2D1F78 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.143 H 281.9°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#2D1F78
RGBrgb(45, 31, 120)
HSLhsl(249, 59%, 30%)
HSVhsv(249, 74%, 47%)
CMYKcmyk(62.5%, 74.2%, 0%, 52.9%)
CIE-LABlab(19.61, 33.36, -48.49)
CIE-LCHlch(19.61, 58.86, 304.53°)
OKLaboklab(32.15% 0.0296 -0.1398)
OKLCHoklch(32.15% 0.143 281.9)
XYZxyz(4.9613, 2.8936, 18.0627)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F78 #6A781F
analogous
#1F3E78 #2D1F78 #5A1F78
triadic
#2D1F78 #782D1F #1F782D
tetradic
#2D1F78 #781F3E #6A781F #1F785A
square
#2D1F78 #781F3E #6A781F #1F785A
split-complementary
#2D1F78 #785A1F #3E781F
monochromatic
#090618 #1B1247 #2D1F78 #3F2CA9 #5943CE

Accessibility & contrast

On white

13.30
#2D1F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1F78
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F78#FFFFFF#000000##FFFFFF
##2D1F781.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#002C76
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d1f78;
/* rgb */ color: rgb(45, 31, 120);
/* oklch */ color: oklch(32.1% 0.143 281.9);
Tailwind
colors: {
  custom: {
    50: '#705ca0',
    500: '#2d1f78',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f78;
$custom-light: #705ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f78",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 120
  },
  "hsl": {
    "h": 249.438,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32149,
    "c": 0.14284,
    "h": 281.9
  },
  "luminance": 0.02894
}

Semantic roles & 50–950 ramp

primary
#2D1F78
secondary
#9CAB47
accent
#E246CA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2D1F78

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

Preview Lab → · Contrast checker → · Palette generator →

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