#2B218D#2B218D

#2B218D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.168 H 277.0°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#2B218D
RGBrgb(43, 33, 141)
HSLhsl(246, 62%, 34%)
HSVhsv(246, 77%, 55%)
CMYKcmyk(69.5%, 76.6%, 0%, 44.7%)
CIE-LABlab(22.03, 38.92, -57.77)
CIE-LCHlch(22.03, 69.66, 303.97°)
OKLaboklab(34.48% 0.0206 -0.1669)
OKLCHoklch(34.48% 0.168 277)
XYZxyz(6.3463, 3.5238, 25.5399)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B218D #838D21
analogous
#214D8D #2B218D #61218D
triadic
#2B218D #8D2B21 #218D2B
tetradic
#2B218D #8D214D #838D21 #218D61
square
#2B218D #8D214D #838D21 #218D61
split-complementary
#2B218D #8D6121 #4D8D21
monochromatic
#0D0A2A #1C155B #2B218D #3A2DBF #5E52D6

Accessibility & contrast

On white

12.32
#2B218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2B218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B218D
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B218D#FFFFFF#000000##FFFFFF
##2B218D1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b218d;
/* rgb */ color: rgb(43, 33, 141);
/* oklch */ color: oklch(34.5% 0.168 277.0);
Tailwind
colors: {
  custom: {
    50: '#735eaf',
    500: '#2b218d',
    950: '#000000',
  },
}
SCSS
$custom: #2b218d;
$custom-light: #735eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b218d",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 245.556,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34475,
    "c": 0.1682,
    "h": 277
  },
  "luminance": 0.03524
}

Semantic roles & 50–950 ramp

primary
#2B218D
secondary
#B0BA50
accent
#E543D6
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #2B218D

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

Preview Lab → · Contrast checker → · Palette generator →

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