#2D2471#2D2471

#2D2471 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.3% C 0.127 H 281.9°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#2D2471
RGBrgb(45, 36, 113)
HSLhsl(247, 52%, 29%)
HSVhsv(247, 68%, 44%)
CMYKcmyk(60.2%, 68.1%, 0%, 55.7%)
CIE-LABlab(20.09, 27.87, -43.21)
CIE-LCHlch(20.09, 51.42, 302.82°)
OKLaboklab(32.29% 0.0262 -0.1243)
OKLCHoklch(32.29% 0.127 281.9)
XYZxyz(4.6928, 3.0116, 15.9536)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2471 #687124
analogous
#244271 #2D2471 #542471
triadic
#2D2471 #712D24 #24712D
tetradic
#2D2471 #712442 #687124 #247154
square
#2D2471 #712442 #687124 #247154
split-complementary
#2D2471 #715424 #427124
monochromatic
#090717 #1B1543 #2D2471 #3F339F #584AC5

Accessibility & contrast

On white

13.11
#2D2471 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2D2471 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2471
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2471#FFFFFF#000000##FFFFFF
##2D24711.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#002E6F
Tritanopia (blue-blind)
#073747
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d2471;
/* rgb */ color: rgb(45, 36, 113);
/* oklch */ color: oklch(32.3% 0.127 281.9);
Tailwind
colors: {
  custom: {
    50: '#6e5f9b',
    500: '#2d2471',
    950: '#000000',
  },
}
SCSS
$custom: #2d2471;
$custom-light: #6e5f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2471",
  "rgb": {
    "r": 45,
    "g": 36,
    "b": 113
  },
  "hsl": {
    "h": 247.013,
    "s": 51.678,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32288,
    "c": 0.12701,
    "h": 281.9
  },
  "luminance": 0.03012
}

Semantic roles & 50–950 ramp

primary
#2D2471
secondary
#9AA44D
accent
#DB4DCA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2D2471

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

Preview Lab → · Contrast checker → · Palette generator →

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