#2B216C#2B216C

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

Color values

HEX#2B216C
RGBrgb(43, 33, 108)
HSLhsl(248, 53%, 28%)
HSVhsv(248, 69%, 42%)
CMYKcmyk(60.2%, 69.4%, 0%, 57.6%)
CIE-LABlab(18.73, 27.72, -42.20)
CIE-LCHlch(18.73, 50.49, 303.29°)
OKLaboklab(31.12% 0.0269 -0.1214)
OKLCHoklch(31.12% 0.124 282.5)
XYZxyz(4.2461, 2.6837, 14.4787)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B216C #626C21
analogous
#213C6C #2B216C #50216C
triadic
#2B216C #6C2B21 #216C2B
tetradic
#2B216C #6C213C #626C21 #216C50
square
#2B216C #6C213C #626C21 #216C50
split-complementary
#2B216C #6C5021 #3C6C21
monochromatic
#090717 #18133D #2B216C #3E2F9B #5442C5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B216C#FFFFFF#000000##FFFFFF
##2B216C1.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)
#00306E
Deuteranopia (green-blind)
#002B6B
Tritanopia (blue-blind)
#083443
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2b216c;
/* rgb */ color: rgb(43, 33, 108);
/* oklch */ color: oklch(31.1% 0.124 282.5);
Tailwind
colors: {
  custom: {
    50: '#6c5d97',
    500: '#2b216c',
    950: '#000000',
  },
}
SCSS
$custom: #2b216c;
$custom-light: #6c5d97;
$custom-dark: #000000;
JSON
{
  "hex": "#2b216c",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 108
  },
  "hsl": {
    "h": 248,
    "s": 53.191,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31116,
    "c": 0.12432,
    "h": 282.5
  },
  "luminance": 0.02684
}

Semantic roles & 50–950 ramp

primary
#2B216C
secondary
#94A049
accent
#DD4BC9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2B216C

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

Preview Lab → · Contrast checker → · Palette generator →

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