#2B218A#2B218A

#2B218A is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.164 H 277.4°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#2B218A
RGBrgb(43, 33, 138)
HSLhsl(246, 61%, 34%)
HSVhsv(246, 76%, 54%)
CMYKcmyk(68.8%, 76.1%, 0%, 45.9%)
CIE-LABlab(21.71, 37.92, -56.43)
CIE-LCHlch(21.71, 67.99, 303.90°)
OKLaboklab(34.15% 0.0212 -0.163)
OKLCHoklch(34.15% 0.164 277.4)
XYZxyz(6.1261, 3.4358, 24.3802)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B218A #808A21
analogous
#214B8A #2B218A #5F218A
triadic
#2B218A #8A2B21 #218A2B
tetradic
#2B218A #8A214B #808A21 #218A5F
square
#2B218A #8A214B #808A21 #218A5F
split-complementary
#2B218A #8A5F21 #4B8A21
monochromatic
#0C0927 #1C1559 #2B218A #3A2DBB #5D50D5

Accessibility & contrast

On white

12.45
#2B218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B218A
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B218A#FFFFFF#000000##FFFFFF
##2B218A1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#003088
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2b218a;
/* rgb */ color: rgb(43, 33, 138);
/* oklch */ color: oklch(34.2% 0.164 277.4);
Tailwind
colors: {
  custom: {
    50: '#735ead',
    500: '#2b218a',
    950: '#000000',
  },
}
SCSS
$custom: #2b218a;
$custom-light: #735ead;
$custom-dark: #000000;
JSON
{
  "hex": "#2b218a",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 245.714,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34154,
    "c": 0.16439,
    "h": 277.4
  },
  "luminance": 0.03436
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B218A

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

Preview Lab → · Contrast checker → · Palette generator →

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