#2D216C#2D216C

#2D216C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.124 H 283.9°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#2D216C
RGBrgb(45, 33, 108)
HSLhsl(250, 53%, 28%)
HSVhsv(250, 69%, 42%)
CMYKcmyk(58.3%, 69.4%, 0%, 57.6%)
CIE-LABlab(18.92, 28.08, -41.88)
CIE-LCHlch(18.92, 50.43, 303.84°)
OKLaboklab(31.3% 0.0298 -0.1204)
OKLCHoklch(31.3% 0.124 283.9)
XYZxyz(4.3320, 2.7281, 14.4827)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D216C #606C21
analogous
#213A6C #2D216C #52216C
triadic
#2D216C #6C2D21 #216C2D
tetradic
#2D216C #6C213A #606C21 #216C52
square
#2D216C #6C213A #606C21 #216C52
split-complementary
#2D216C #6C5221 #3A6C21
monochromatic
#0A0717 #19133D #2D216C #412F9B #5742C5

Accessibility & contrast

On white

13.59
#2D216C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2D216C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D216C
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D216C#FFFFFF#000000##FFFFFF
##2D216C1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#002C6B
Tritanopia (blue-blind)
#0F3443
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d216c;
/* rgb */ color: rgb(45, 33, 108);
/* oklch */ color: oklch(31.3% 0.124 283.9);
Tailwind
colors: {
  custom: {
    50: '#6d5d97',
    500: '#2d216c',
    950: '#000000',
  },
}
SCSS
$custom: #2d216c;
$custom-light: #6d5d97;
$custom-dark: #000000;
JSON
{
  "hex": "#2d216c",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 108
  },
  "hsl": {
    "h": 249.6,
    "s": 53.191,
    "l": 27.647
  },
  "oklch": {
    "l": 0.313,
    "c": 0.12403,
    "h": 283.9
  },
  "luminance": 0.02728
}

Semantic roles & 50–950 ramp

primary
#2D216C
secondary
#92A049
accent
#DD4BC5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #2D216C

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

Preview Lab → · Contrast checker → · Palette generator →

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