#2B219B#2B219B

#2B219B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.186 H 275.3°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#2B219B
RGBrgb(43, 33, 155)
HSLhsl(245, 65%, 37%)
HSVhsv(245, 79%, 61%)
CMYKcmyk(72.3%, 78.7%, 0%, 39.2%)
CIE-LABlab(23.56, 43.50, -63.89)
CIE-LCHlch(23.56, 77.29, 304.25°)
OKLaboklab(36.01% 0.0172 -0.1847)
OKLCHoklch(36.01% 0.186 275.3)
XYZxyz(7.4546, 3.9671, 31.3769)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B219B #919B21
analogous
#21549B #2B219B #68219B
triadic
#2B219B #9B2B21 #219B2B
tetradic
#2B219B #9B2154 #919B21 #219B68
square
#2B219B #9B2154 #919B21 #219B68
split-complementary
#2B219B #9B6821 #549B21
monochromatic
#0F0C36 #1D1669 #2B219B #392CCD #655ADC

Accessibility & contrast

On white

11.71
#2B219B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2B219B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B219B
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B219B#FFFFFF#000000##FFFFFF
##2B219B1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003399
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2b219b;
/* rgb */ color: rgb(43, 33, 155);
/* oklch */ color: oklch(36.0% 0.186 275.3);
Tailwind
colors: {
  custom: {
    50: '#775fba',
    500: '#2b219b',
    950: '#000000',
  },
}
SCSS
$custom: #2b219b;
$custom-light: #775fba;
$custom-dark: #000000;
JSON
{
  "hex": "#2b219b",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 155
  },
  "hsl": {
    "h": 244.918,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36007,
    "c": 0.18554,
    "h": 275.3
  },
  "luminance": 0.03968
}

Semantic roles & 50–950 ramp

primary
#2B219B
secondary
#B8C058
accent
#E840DA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2B219B

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

Preview Lab → · Contrast checker → · Palette generator →

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