#2B1A87#2B1A87

#2B1A87 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.9% C 0.168 H 279.0°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#2B1A87
RGBrgb(43, 26, 135)
HSLhsl(249, 68%, 32%)
HSVhsv(249, 81%, 53%)
CMYKcmyk(68.1%, 80.7%, 0%, 47.1%)
CIE-LABlab(20.05, 40.76, -57.29)
CIE-LCHlch(20.05, 70.31, 305.43°)
OKLaboklab(32.89% 0.0261 -0.1655)
OKLCHoklch(32.89% 0.168 279)
XYZxyz(5.7374, 3.0012, 23.1939)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1A87 #76871A
analogous
#1A4087 #2B1A87 #621A87
triadic
#2B1A87 #872B1A #1A872B
tetradic
#2B1A87 #871A40 #76871A #1A8762
square
#2B1A87 #871A40 #76871A #1A8762
split-complementary
#2B1A87 #87621A #40871A
monochromatic
#0A0620 #1B1054 #2B1A87 #3B24BA #5941DA

Accessibility & contrast

On white

13.12
#2B1A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2B1A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1A87
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1A87#FFFFFF#000000##FFFFFF
##2B1A871.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348A
Deuteranopia (green-blind)
#002C85
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2b1a87;
/* rgb */ color: rgb(43, 26, 135);
/* oklch */ color: oklch(32.9% 0.168 279.0);
Tailwind
colors: {
  custom: {
    50: '#735aab',
    500: '#2b1a87',
    950: '#000000',
  },
}
SCSS
$custom: #2b1a87;
$custom-light: #735aab;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1a87",
  "rgb": {
    "r": 43,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 249.358,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32889,
    "c": 0.1675,
    "h": 279
  },
  "luminance": 0.03002
}

Semantic roles & 50–950 ramp

primary
#2B1A87
secondary
#A8BA42
accent
#EB3DD0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1A87

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

Preview Lab → · Contrast checker → · Palette generator →

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