#2D216A#2D216A

#2D216A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.1% C 0.121 H 284.4°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#2D216A
RGBrgb(45, 33, 106)
HSLhsl(250, 53%, 27%)
HSVhsv(250, 69%, 42%)
CMYKcmyk(57.5%, 68.9%, 0%, 58.4%)
CIE-LABlab(18.74, 27.40, -40.88)
CIE-LCHlch(18.74, 49.21, 303.84°)
OKLaboklab(31.11% 0.0301 -0.1174)
OKLCHoklch(31.11% 0.121 284.4)
XYZxyz(4.2268, 2.6860, 13.9286)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D216A #5E6A21
analogous
#213A6A #2D216A #52216A
triadic
#2D216A #6A2D21 #216A2D
tetradic
#2D216A #6A213A #5E6A21 #216A52
square
#2D216A #6A213A #5E6A21 #216A52
split-complementary
#2D216A #6A5221 #3A6A21
monochromatic
#0A0717 #19123B #2D216A #413099 #5741C4

Accessibility & contrast

On white

13.66
#2D216A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D216A
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D216A#FFFFFF#000000##FFFFFF
##2D216A1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#002B69
Tritanopia (blue-blind)
#123342
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d216a;
/* rgb */ color: rgb(45, 33, 106);
/* oklch */ color: oklch(31.1% 0.121 284.4);
Tailwind
colors: {
  custom: {
    50: '#6d5d95',
    500: '#2d216a',
    950: '#000000',
  },
}
SCSS
$custom: #2d216a;
$custom-light: #6d5d95;
$custom-dark: #000000;
JSON
{
  "hex": "#2d216a",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 106
  },
  "hsl": {
    "h": 249.863,
    "s": 52.518,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31113,
    "c": 0.12122,
    "h": 284.4
  },
  "luminance": 0.02686
}

Semantic roles & 50–950 ramp

primary
#2D216A
secondary
#909E49
accent
#DC4CC4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2D216A

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

Preview Lab → · Contrast checker → · Palette generator →

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