#2D217A#2D217A

#2D217A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.143 H 281.1°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#2D217A
RGBrgb(45, 33, 122)
HSLhsl(248, 57%, 30%)
HSVhsv(248, 73%, 48%)
CMYKcmyk(63.1%, 73%, 0%, 52.2%)
CIE-LABlab(20.24, 32.83, -48.73)
CIE-LCHlch(20.24, 58.76, 303.96°)
OKLaboklab(32.66% 0.0275 -0.1405)
OKLCHoklch(32.66% 0.143 281.1)
XYZxyz(5.1378, 3.0504, 18.7266)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D217A #6E7A21
analogous
#21417A #2D217A #59217A
triadic
#2D217A #7A2D21 #217A2D
tetradic
#2D217A #7A2141 #6E7A21 #217A59
square
#2D217A #7A2141 #6E7A21 #217A59
split-complementary
#2D217A #7A5921 #417A21
monochromatic
#09071A #1B144A #2D217A #3F2EAA #5A48CD

Accessibility & contrast

On white

13.04
#2D217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2D217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D217A
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D217A#FFFFFF#000000##FFFFFF
##2D217A1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2d217a;
/* rgb */ color: rgb(45, 33, 122);
/* oklch */ color: oklch(32.7% 0.143 281.1);
Tailwind
colors: {
  custom: {
    50: '#705ea1',
    500: '#2d217a',
    950: '#000000',
  },
}
SCSS
$custom: #2d217a;
$custom-light: #705ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d217a",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 248.09,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3266,
    "c": 0.14314,
    "h": 281.1
  },
  "luminance": 0.03051
}

Semantic roles & 50–950 ramp

primary
#2D217A
secondary
#A0AD4A
accent
#E147CC
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2D217A

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

Preview Lab → · Contrast checker → · Palette generator →

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