#2D2771#2D2771

#2D2771 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.123 H 280.9°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#2D2771
RGBrgb(45, 39, 113)
HSLhsl(245, 49%, 30%)
HSVhsv(245, 65%, 44%)
CMYKcmyk(60.2%, 65.5%, 0%, 55.7%)
CIE-LABlab(20.83, 25.90, -42.01)
CIE-LCHlch(20.83, 49.35, 301.66°)
OKLaboklab(32.83% 0.0231 -0.1207)
OKLCHoklch(32.83% 0.123 280.9)
XYZxyz(4.7874, 3.2009, 15.9851)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2771 #6B7127
analogous
#274671 #2D2771 #522771
triadic
#2D2771 #712D27 #27712D
tetradic
#2D2771 #712746 #6B7127 #277152
square
#2D2771 #712746 #6B7127 #277152
split-complementary
#2D2771 #715227 #467127
monochromatic
#090817 #1B1744 #2D2771 #3F379E #5950C3

Accessibility & contrast

On white

12.80
#2D2771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2D2771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2771
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2771#FFFFFF#000000##FFFFFF
##2D27711.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#063948
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d2771;
/* rgb */ color: rgb(45, 39, 113);
/* oklch */ color: oklch(32.8% 0.123 280.9);
Tailwind
colors: {
  custom: {
    50: '#6e619a',
    500: '#2d2771',
    950: '#000000',
  },
}
SCSS
$custom: #2d2771;
$custom-light: #6e619a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2771",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 244.865,
    "s": 48.684,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32827,
    "c": 0.12293,
    "h": 280.9
  },
  "luminance": 0.03201
}

Semantic roles & 50–950 ramp

primary
#2D2771
secondary
#9DA350
accent
#D850CD
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2D2771

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

Preview Lab → · Contrast checker → · Palette generator →

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