#2B218B#2B218B

#2B218B is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.166 H 277.3°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#2B218B
RGBrgb(43, 33, 139)
HSLhsl(246, 62%, 34%)
HSVhsv(246, 76%, 55%)
CMYKcmyk(69.1%, 76.3%, 0%, 45.5%)
CIE-LABlab(21.82, 38.26, -56.88)
CIE-LCHlch(21.82, 68.55, 303.93°)
OKLaboklab(34.26% 0.021 -0.1643)
OKLCHoklch(34.26% 0.166 277.3)
XYZxyz(6.1988, 3.4648, 24.7632)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B218B #818B21
analogous
#214C8B #2B218B #60218B
triadic
#2B218B #8B2B21 #218B2B
tetradic
#2B218B #8B214C #818B21 #218B60
square
#2B218B #8B214C #818B21 #218B60
split-complementary
#2B218B #8B6021 #4C8B21
monochromatic
#0C0A28 #1C155A #2B218B #3A2DBC #5D51D6

Accessibility & contrast

On white

12.40
#2B218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2B218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B218B
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B218B#FFFFFF#000000##FFFFFF
##2B218B1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003089
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2b218b;
/* rgb */ color: rgb(43, 33, 139);
/* oklch */ color: oklch(34.3% 0.166 277.3);
Tailwind
colors: {
  custom: {
    50: '#735eae',
    500: '#2b218b',
    950: '#000000',
  },
}
SCSS
$custom: #2b218b;
$custom-light: #735eae;
$custom-dark: #000000;
JSON
{
  "hex": "#2b218b",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 245.66,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34261,
    "c": 0.16567,
    "h": 277.3
  },
  "luminance": 0.03465
}

Semantic roles & 50–950 ramp

primary
#2B218B
secondary
#AFB94F
accent
#E543D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B218B

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

Preview Lab → · Contrast checker → · Palette generator →

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