#2D217C#2D217C

#2D217C is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.146 H 280.7°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#2D217C
RGBrgb(45, 33, 124)
HSLhsl(248, 58%, 31%)
HSVhsv(248, 73%, 49%)
CMYKcmyk(63.7%, 73.4%, 0%, 51.4%)
CIE-LABlab(20.44, 33.50, -49.68)
CIE-LCHlch(20.44, 59.92, 303.99°)
OKLaboklab(32.86% 0.0271 -0.1432)
OKLCHoklch(32.86% 0.146 280.7)
XYZxyz(5.2630, 3.1005, 19.3860)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D217C #707C21
analogous
#21427C #2D217C #5A217C
triadic
#2D217C #7C2D21 #217C2D
tetradic
#2D217C #7C2142 #707C21 #217C5A
square
#2D217C #7C2142 #707C21 #217C5A
split-complementary
#2D217C #7C5A21 #427C21
monochromatic
#0A071B #1B144C #2D217C #3F2EAC #5A49CF

Accessibility & contrast

On white

12.96
#2D217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2D217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D217C
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D217C#FFFFFF#000000##FFFFFF
##2D217C1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2d217c;
/* rgb */ color: rgb(45, 33, 124);
/* oklch */ color: oklch(32.9% 0.146 280.7);
Tailwind
colors: {
  custom: {
    50: '#705ea3',
    500: '#2d217c',
    950: '#000000',
  },
}
SCSS
$custom: #2d217c;
$custom-light: #705ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d217c",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 247.912,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32861,
    "c": 0.14579,
    "h": 280.7
  },
  "luminance": 0.03101
}

Semantic roles & 50–950 ramp

primary
#2D217C
secondary
#A2AF4A
accent
#E147CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2D217C

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

Preview Lab → · Contrast checker → · Palette generator →

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