#2B1B89#2B1B89

#2B1B89 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.2% C 0.169 H 278.5°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#2B1B89
RGBrgb(43, 27, 137)
HSLhsl(249, 67%, 32%)
HSVhsv(249, 80%, 54%)
CMYKcmyk(68.6%, 80.3%, 0%, 46.3%)
CIE-LABlab(20.45, 40.88, -57.88)
CIE-LCHlch(20.45, 70.86, 305.23°)
OKLaboklab(33.24% 0.025 -0.1672)
OKLCHoklch(33.24% 0.169 278.5)
XYZxyz(5.9021, 3.1031, 23.9500)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B89 #79891B
analogous
#1B4289 #2B1B89 #621B89
triadic
#2B1B89 #892B1B #1B892B
tetradic
#2B1B89 #891B42 #79891B #1B8962
square
#2B1B89 #891B42 #79891B #1B8962
split-complementary
#2B1B89 #89621B #42891B
monochromatic
#0B0723 #1B1156 #2B1B89 #3B25BC #5A44DA

Accessibility & contrast

On white

12.96
#2B1B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2B1B89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1B89
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B89#FFFFFF#000000##FFFFFF
##2B1B891.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002D87
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2b1b89;
/* rgb */ color: rgb(43, 27, 137);
/* oklch */ color: oklch(33.2% 0.169 278.5);
Tailwind
colors: {
  custom: {
    50: '#735bad',
    500: '#2b1b89',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b89;
$custom-light: #735bad;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b89",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 137
  },
  "hsl": {
    "h": 248.727,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33237,
    "c": 0.16904,
    "h": 278.5
  },
  "luminance": 0.03104
}

Semantic roles & 50–950 ramp

primary
#2B1B89
secondary
#AABC44
accent
#EA3ED1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1B89

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

Preview Lab → · Contrast checker → · Palette generator →

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