#2D216B#2D216B

#2D216B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.2% C 0.123 H 284.1°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#2D216B
RGBrgb(45, 33, 107)
HSLhsl(250, 53%, 27%)
HSVhsv(250, 69%, 42%)
CMYKcmyk(57.9%, 69.2%, 0%, 58%)
CIE-LABlab(18.83, 27.74, -41.38)
CIE-LCHlch(18.83, 49.82, 303.84°)
OKLaboklab(31.21% 0.03 -0.1189)
OKLCHoklch(31.21% 0.123 284.1)
XYZxyz(4.2791, 2.7069, 14.2041)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D216B #5F6B21
analogous
#213A6B #2D216B #52216B
triadic
#2D216B #6B2D21 #216B2D
tetradic
#2D216B #6B213A #5F6B21 #216B52
square
#2D216B #6B213A #5F6B21 #216B52
split-complementary
#2D216B #6B5221 #3A6B21
monochromatic
#0A0717 #19133C #2D216B #412F9A #5742C5

Accessibility & contrast

On white

13.62
#2D216B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2D216B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D216B
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D216B#FFFFFF#000000##FFFFFF
##2D216B1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#002B6A
Tritanopia (blue-blind)
#113443
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d216b;
/* rgb */ color: rgb(45, 33, 107);
/* oklch */ color: oklch(31.2% 0.123 284.1);
Tailwind
colors: {
  custom: {
    50: '#6d5d96',
    500: '#2d216b',
    950: '#000000',
  },
}
SCSS
$custom: #2d216b;
$custom-light: #6d5d96;
$custom-dark: #000000;
JSON
{
  "hex": "#2d216b",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 107
  },
  "hsl": {
    "h": 249.73,
    "s": 52.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31207,
    "c": 0.12263,
    "h": 284.1
  },
  "luminance": 0.02707
}

Semantic roles & 50–950 ramp

primary
#2D216B
secondary
#919F49
accent
#DC4CC5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2D216B

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

Preview Lab → · Contrast checker → · Palette generator →

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