#2B2171#2B2171

#2B2171 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.131 H 281.5°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#2B2171
RGBrgb(43, 33, 113)
HSLhsl(248, 55%, 29%)
HSVhsv(248, 71%, 44%)
CMYKcmyk(61.9%, 70.8%, 0%, 55.7%)
CIE-LABlab(19.20, 29.44, -44.68)
CIE-LCHlch(19.20, 53.51, 303.38°)
OKLaboklab(31.6% 0.0261 -0.1287)
OKLCHoklch(31.6% 0.131 281.5)
XYZxyz(4.5198, 2.7932, 15.9206)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2171 #677121
analogous
#213F71 #2B2171 #532171
triadic
#2B2171 #712B21 #21712B
tetradic
#2B2171 #71213F #677121 #217153
square
#2B2171 #71213F #677121 #217153
split-complementary
#2B2171 #715321 #3F7121
monochromatic
#090718 #191342 #2B2171 #3D2FA0 #5544C8

Accessibility & contrast

On white

13.47
#2B2171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2B2171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2171
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2171#FFFFFF#000000##FFFFFF
##2B21711.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#002C6F
Tritanopia (blue-blind)
#003646
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b2171;
/* rgb */ color: rgb(43, 33, 113);
/* oklch */ color: oklch(31.6% 0.131 281.5);
Tailwind
colors: {
  custom: {
    50: '#6d5d9b',
    500: '#2b2171',
    950: '#000000',
  },
}
SCSS
$custom: #2b2171;
$custom-light: #6d5d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2171",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 113
  },
  "hsl": {
    "h": 247.5,
    "s": 54.795,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31596,
    "c": 0.13128,
    "h": 281.5
  },
  "luminance": 0.02794
}

Semantic roles & 50–950 ramp

primary
#2B2171
secondary
#99A549
accent
#DE4ACC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2B2171

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

Preview Lab → · Contrast checker → · Palette generator →

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