#2D216F#2D216F

#2D216F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.128 H 283.3°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#2D216F
RGBrgb(45, 33, 111)
HSLhsl(249, 54%, 28%)
HSVhsv(249, 70%, 44%)
CMYKcmyk(59.5%, 70.3%, 0%, 56.5%)
CIE-LABlab(19.20, 29.10, -43.38)
CIE-LCHlch(19.20, 52.24, 303.86°)
OKLaboklab(31.58% 0.0294 -0.1248)
OKLCHoklch(31.58% 0.128 283.3)
XYZxyz(4.4944, 2.7930, 15.3381)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D216F #636F21
analogous
#213C6F #2D216F #54216F
triadic
#2D216F #6F2D21 #216F2D
tetradic
#2D216F #6F213C #636F21 #216F54
square
#2D216F #6F213C #636F21 #216F54
split-complementary
#2D216F #6F5421 #3C6F21
monochromatic
#0A0718 #1A1340 #2D216F #402F9E #5843C7

Accessibility & contrast

On white

13.47
#2D216F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2D216F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D216F
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D216F#FFFFFF#000000##FFFFFF
##2D216F1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#0B3545
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d216f;
/* rgb */ color: rgb(45, 33, 111);
/* oklch */ color: oklch(31.6% 0.128 283.3);
Tailwind
colors: {
  custom: {
    50: '#6e5d99',
    500: '#2d216f',
    950: '#000000',
  },
}
SCSS
$custom: #2d216f;
$custom-light: #6e5d99;
$custom-dark: #000000;
JSON
{
  "hex": "#2d216f",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 111
  },
  "hsl": {
    "h": 249.231,
    "s": 54.167,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31584,
    "c": 0.1282,
    "h": 283.3
  },
  "luminance": 0.02793
}

Semantic roles & 50–950 ramp

primary
#2D216F
secondary
#95A349
accent
#DE4AC7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2D216F

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

Preview Lab → · Contrast checker → · Palette generator →

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