#2D2371#2D2371

#2D2371 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.1% C 0.128 H 282.2°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#2D2371
RGBrgb(45, 35, 113)
HSLhsl(248, 53%, 29%)
HSVhsv(248, 69%, 44%)
CMYKcmyk(60.2%, 69%, 0%, 55.7%)
CIE-LABlab(19.85, 28.51, -43.60)
CIE-LCHlch(19.85, 52.10, 303.18°)
OKLaboklab(32.11% 0.0272 -0.1254)
OKLCHoklch(32.11% 0.128 282.2)
XYZxyz(4.6629, 2.9519, 15.9436)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2371 #677123
analogous
#234071 #2D2371 #542371
triadic
#2D2371 #712D23 #23712D
tetradic
#2D2371 #712340 #677123 #237154
square
#2D2371 #712340 #677123 #237154
split-complementary
#2D2371 #715423 #407123
monochromatic
#090717 #1A1542 #2D2371 #4031A0 #5848C6

Accessibility & contrast

On white

13.20
#2D2371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2D2371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2371
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2371#FFFFFF#000000##FFFFFF
##2D23711.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d2371;
/* rgb */ color: rgb(45, 35, 113);
/* oklch */ color: oklch(32.1% 0.128 282.2);
Tailwind
colors: {
  custom: {
    50: '#6e5f9b',
    500: '#2d2371',
    950: '#000000',
  },
}
SCSS
$custom: #2d2371;
$custom-light: #6e5f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2371",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 113
  },
  "hsl": {
    "h": 247.692,
    "s": 52.703,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32114,
    "c": 0.12835,
    "h": 282.2
  },
  "luminance": 0.02952
}

Semantic roles & 50–950 ramp

primary
#2D2371
secondary
#99A44C
accent
#DC4CCA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2D2371

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

Preview Lab → · Contrast checker → · Palette generator →

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