#2D217D#2D217D

#2D217D is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.147 H 280.5°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#2D217D
RGBrgb(45, 33, 125)
HSLhsl(248, 58%, 31%)
HSVhsv(248, 74%, 49%)
CMYKcmyk(64%, 73.6%, 0%, 51%)
CIE-LABlab(20.54, 33.83, -50.16)
CIE-LCHlch(20.54, 60.50, 304.00°)
OKLaboklab(32.96% 0.0269 -0.1446)
OKLCHoklch(32.96% 0.147 280.5)
XYZxyz(5.3265, 3.1259, 19.7207)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D217D #717D21
analogous
#21437D #2D217D #5B217D
triadic
#2D217D #7D2D21 #217D2D
tetradic
#2D217D #7D2143 #717D21 #217D5B
square
#2D217D #7D2143 #717D21 #217D5B
split-complementary
#2D217D #7D5B21 #437D21
monochromatic
#0A071C #1C144D #2D217D #3E2EAD #5B49CF

Accessibility & contrast

On white

12.92
#2D217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2D217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D217D
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D217D#FFFFFF#000000##FFFFFF
##2D217D1.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2d217d;
/* rgb */ color: rgb(45, 33, 125);
/* oklch */ color: oklch(33.0% 0.147 280.5);
Tailwind
colors: {
  custom: {
    50: '#715ea4',
    500: '#2d217d',
    950: '#000000',
  },
}
SCSS
$custom: #2d217d;
$custom-light: #715ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d217d",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 247.826,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32962,
    "c": 0.14711,
    "h": 280.5
  },
  "luminance": 0.03126
}

Semantic roles & 50–950 ramp

primary
#2D217D
secondary
#A3B04A
accent
#E146CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2D217D

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

Preview Lab → · Contrast checker → · Palette generator →

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