#2D216E#2D216E

#2D216E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.127 H 283.5°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#2D216E
RGBrgb(45, 33, 110)
HSLhsl(249, 54%, 28%)
HSVhsv(249, 70%, 43%)
CMYKcmyk(59.1%, 70%, 0%, 56.9%)
CIE-LABlab(19.10, 28.76, -42.89)
CIE-LCHlch(19.10, 51.64, 303.85°)
OKLaboklab(31.49% 0.0295 -0.1233)
OKLCHoklch(31.49% 0.127 283.5)
XYZxyz(4.4397, 2.7711, 15.0498)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D216E #626E21
analogous
#213B6E #2D216E #53216E
triadic
#2D216E #6E2D21 #216E2D
tetradic
#2D216E #6E213B #626E21 #216E53
square
#2D216E #6E213B #626E21 #216E53
split-complementary
#2D216E #6E5321 #3B6E21
monochromatic
#0A0718 #1A133F #2D216E #402F9D #5743C7

Accessibility & contrast

On white

13.51
#2D216E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D216E
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D216E#FFFFFF#000000##FFFFFF
##2D216E1.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003170
Deuteranopia (green-blind)
#002C6C
Tritanopia (blue-blind)
#0D3544
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d216e;
/* rgb */ color: rgb(45, 33, 110);
/* oklch */ color: oklch(31.5% 0.127 283.5);
Tailwind
colors: {
  custom: {
    50: '#6e5d98',
    500: '#2d216e',
    950: '#000000',
  },
}
SCSS
$custom: #2d216e;
$custom-light: #6e5d98;
$custom-dark: #000000;
JSON
{
  "hex": "#2d216e",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 110
  },
  "hsl": {
    "h": 249.351,
    "s": 53.846,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31489,
    "c": 0.12682,
    "h": 283.5
  },
  "luminance": 0.02771
}

Semantic roles & 50–950 ramp

primary
#2D216E
secondary
#94A249
accent
#DD4BC6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2D216E

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

Preview Lab → · Contrast checker → · Palette generator →

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