#2D217E#2D217E

#2D217E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.148 H 280.4°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#2D217E
RGBrgb(45, 33, 126)
HSLhsl(248, 58%, 31%)
HSVhsv(248, 74%, 49%)
CMYKcmyk(64.3%, 73.8%, 0%, 50.6%)
CIE-LABlab(20.64, 34.17, -50.63)
CIE-LCHlch(20.64, 61.08, 304.02°)
OKLaboklab(33.06% 0.0267 -0.146)
OKLCHoklch(33.06% 0.148 280.4)
XYZxyz(5.3907, 3.1516, 20.0589)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D217E #727E21
analogous
#21437E #2D217E #5B217E
triadic
#2D217E #7E2D21 #217E2D
tetradic
#2D217E #7E2143 #727E21 #217E5B
square
#2D217E #7E2143 #727E21 #217E5B
split-complementary
#2D217E #7E5B21 #437E21
monochromatic
#0A081D #1C144E #2D217E #3E2EAE #5B4AD0

Accessibility & contrast

On white

12.88
#2D217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D217E
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D217E#FFFFFF#000000##FFFFFF
##2D217E1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d217e;
/* rgb */ color: rgb(45, 33, 126);
/* oklch */ color: oklch(33.1% 0.148 280.4);
Tailwind
colors: {
  custom: {
    50: '#715ea4',
    500: '#2d217e',
    950: '#000000',
  },
}
SCSS
$custom: #2d217e;
$custom-light: #715ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d217e",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 247.742,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33063,
    "c": 0.14843,
    "h": 280.4
  },
  "luminance": 0.03152
}

Semantic roles & 50–950 ramp

primary
#2D217E
secondary
#A3B14A
accent
#E246CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2D217E

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

Preview Lab → · Contrast checker → · Palette generator →

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