#2B1B82#2B1B82

#2B1B82 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.160 H 279.7°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#2B1B82
RGBrgb(43, 27, 130)
HSLhsl(249, 66%, 31%)
HSVhsv(249, 79%, 51%)
CMYKcmyk(66.9%, 79.2%, 0%, 49%)
CIE-LABlab(19.67, 38.64, -54.76)
CIE-LCHlch(19.67, 67.02, 305.21°)
OKLaboklab(32.46% 0.0269 -0.1581)
OKLCHoklch(32.46% 0.16 279.7)
XYZxyz(5.4162, 2.9087, 21.3908)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B82 #72821B
analogous
#1B3F82 #2B1B82 #5E1B82
triadic
#2B1B82 #822B1B #1B822B
tetradic
#2B1B82 #821B3F #72821B #1B825E
square
#2B1B82 #821B3F #72821B #1B825E
split-complementary
#2B1B82 #825E1B #3F821B
monochromatic
#09061D #1A104F #2B1B82 #3C26B5 #5840D7

Accessibility & contrast

On white

13.28
#2B1B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2B1B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1B82
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B82#FFFFFF#000000##FFFFFF
##2B1B821.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002C80
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2b1b82;
/* rgb */ color: rgb(43, 27, 130);
/* oklch */ color: oklch(32.5% 0.160 279.7);
Tailwind
colors: {
  custom: {
    50: '#715aa7',
    500: '#2b1b82',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b82;
$custom-light: #715aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b82",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 249.32,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32463,
    "c": 0.16037,
    "h": 279.7
  },
  "luminance": 0.02909
}

Semantic roles & 50–950 ramp

primary
#2B1B82
secondary
#A4B643
accent
#E93FCE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1B82

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

Preview Lab → · Contrast checker → · Palette generator →

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