#2B1B84#2B1B84

#2B1B84 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.163 H 279.3°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#2B1B84
RGBrgb(43, 27, 132)
HSLhsl(249, 66%, 31%)
HSVhsv(249, 80%, 52%)
CMYKcmyk(67.4%, 79.5%, 0%, 48.2%)
CIE-LABlab(19.89, 39.28, -55.66)
CIE-LCHlch(19.89, 68.12, 305.21°)
OKLaboklab(32.68% 0.0264 -0.1607)
OKLCHoklch(32.68% 0.163 279.3)
XYZxyz(5.5517, 2.9629, 22.1047)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B84 #74841B
analogous
#1B3F84 #2B1B84 #5F1B84
triadic
#2B1B84 #842B1B #1B842B
tetradic
#2B1B84 #841B3F #74841B #1B845F
square
#2B1B84 #841B3F #74841B #1B845F
split-complementary
#2B1B84 #845F1B #3F841B
monochromatic
#0A061E #1A1151 #2B1B84 #3C25B7 #5841D8

Accessibility & contrast

On white

13.19
#2B1B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2B1B84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1B84
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B84#FFFFFF#000000##FFFFFF
##2B1B841.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002C82
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2b1b84;
/* rgb */ color: rgb(43, 27, 132);
/* oklch */ color: oklch(32.7% 0.163 279.3);
Tailwind
colors: {
  custom: {
    50: '#725aa9',
    500: '#2b1b84',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b84;
$custom-light: #725aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b84",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 132
  },
  "hsl": {
    "h": 249.143,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32682,
    "c": 0.16286,
    "h": 279.3
  },
  "luminance": 0.02963
}

Semantic roles & 50–950 ramp

primary
#2B1B84
secondary
#A6B743
accent
#E93FCF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1B84

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

Preview Lab → · Contrast checker → · Palette generator →

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