#2B1B81#2B1B81

#2B1B81 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.159 H 279.8°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#2B1B81
RGBrgb(43, 27, 129)
HSLhsl(249, 65%, 31%)
HSVhsv(249, 79%, 51%)
CMYKcmyk(66.7%, 79.1%, 0%, 49.4%)
CIE-LABlab(19.57, 38.32, -54.31)
CIE-LCHlch(19.57, 66.46, 305.21°)
OKLaboklab(32.35% 0.0272 -0.1568)
OKLCHoklch(32.35% 0.159 279.8)
XYZxyz(5.3494, 2.8820, 21.0390)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B81 #71811B
analogous
#1B3E81 #2B1B81 #5E1B81
triadic
#2B1B81 #812B1B #1B812B
tetradic
#2B1B81 #811B3E #71811B #1B815E
square
#2B1B81 #811B3E #71811B #1B815E
split-complementary
#2B1B81 #815E1B #3E811B
monochromatic
#09061C #1A104E #2B1B81 #3C26B4 #573FD7

Accessibility & contrast

On white

13.32
#2B1B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1B81
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B81#FFFFFF#000000##FFFFFF
##2B1B811.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b1b81;
/* rgb */ color: rgb(43, 27, 129);
/* oklch */ color: oklch(32.4% 0.159 279.8);
Tailwind
colors: {
  custom: {
    50: '#715aa7',
    500: '#2b1b81',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b81;
$custom-light: #715aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b81",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 249.412,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32353,
    "c": 0.15911,
    "h": 279.8
  },
  "luminance": 0.02882
}

Semantic roles & 50–950 ramp

primary
#2B1B81
secondary
#A3B543
accent
#E83FCE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1B81

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

Preview Lab → · Contrast checker → · Palette generator →

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