#2D217B#2D217B

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

Color values

HEX#2D217B
RGBrgb(45, 33, 123)
HSLhsl(248, 58%, 31%)
HSVhsv(248, 73%, 48%)
CMYKcmyk(63.4%, 73.2%, 0%, 51.8%)
CIE-LABlab(20.34, 33.16, -49.21)
CIE-LCHlch(20.34, 59.34, 303.98°)
OKLaboklab(32.76% 0.0273 -0.1419)
OKLCHoklch(32.76% 0.144 280.9)
XYZxyz(5.2001, 3.0753, 19.0546)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D217B #6F7B21
analogous
#21427B #2D217B #5A217B
triadic
#2D217B #7B2D21 #217B2D
tetradic
#2D217B #7B2142 #6F7B21 #217B5A
square
#2D217B #7B2142 #6F7B21 #217B5A
split-complementary
#2D217B #7B5A21 #427B21
monochromatic
#0A071A #1B144B #2D217B #3F2EAB #5A48CE

Accessibility & contrast

On white

13.00
#2D217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D217B
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D217B#FFFFFF#000000##FFFFFF
##2D217B1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d217b;
/* rgb */ color: rgb(45, 33, 123);
/* oklch */ color: oklch(32.8% 0.144 280.9);
Tailwind
colors: {
  custom: {
    50: '#705ea2',
    500: '#2d217b',
    950: '#000000',
  },
}
SCSS
$custom: #2d217b;
$custom-light: #705ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d217b",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 248,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3276,
    "c": 0.14446,
    "h": 280.9
  },
  "luminance": 0.03076
}

Semantic roles & 50–950 ramp

primary
#2D217B
secondary
#A1AE4A
accent
#E147CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2D217B

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

Preview Lab → · Contrast checker → · Palette generator →

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