#2B216A#2B216A

#2B216A is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.121 H 282.9°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#2B216A
RGBrgb(43, 33, 106)
HSLhsl(248, 53%, 27%)
HSVhsv(248, 69%, 42%)
CMYKcmyk(59.4%, 68.9%, 0%, 58.4%)
CIE-LABlab(18.55, 27.02, -41.20)
CIE-LCHlch(18.55, 49.27, 303.26°)
OKLaboklab(30.93% 0.0271 -0.1184)
OKLCHoklch(30.93% 0.122 282.9)
XYZxyz(4.1408, 2.6417, 13.9246)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B216A #606A21
analogous
#213C6A #2B216A #50216A
triadic
#2B216A #6A2B21 #216A2B
tetradic
#2B216A #6A213C #606A21 #216A50
square
#2B216A #6A213C #606A21 #216A50
split-complementary
#2B216A #6A5021 #3C6A21
monochromatic
#090717 #18123B #2B216A #3E3099 #5341C4

Accessibility & contrast

On white

13.74
#2B216A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2B216A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B216A
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B216A#FFFFFF#000000##FFFFFF
##2B216A1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#002B69
Tritanopia (blue-blind)
#0B3342
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2b216a;
/* rgb */ color: rgb(43, 33, 106);
/* oklch */ color: oklch(30.9% 0.121 282.9);
Tailwind
colors: {
  custom: {
    50: '#6c5d95',
    500: '#2b216a',
    950: '#000000',
  },
}
SCSS
$custom: #2b216a;
$custom-light: #6c5d95;
$custom-dark: #000000;
JSON
{
  "hex": "#2b216a",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 106
  },
  "hsl": {
    "h": 248.219,
    "s": 52.518,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30927,
    "c": 0.1215,
    "h": 282.9
  },
  "luminance": 0.02642
}

Semantic roles & 50–950 ramp

primary
#2B216A
secondary
#929E49
accent
#DC4CC8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2B216A

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

Preview Lab → · Contrast checker → · Palette generator →

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