#2B1B88#2B1B88

#2B1B88 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.168 H 278.7°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#2B1B88
RGBrgb(43, 27, 136)
HSLhsl(249, 67%, 32%)
HSVhsv(249, 80%, 53%)
CMYKcmyk(68.4%, 80.1%, 0%, 46.7%)
CIE-LABlab(20.34, 40.56, -57.44)
CIE-LCHlch(20.34, 70.32, 305.23°)
OKLaboklab(33.13% 0.0253 -0.1659)
OKLCHoklch(33.13% 0.168 278.7)
XYZxyz(5.8307, 3.0745, 23.5740)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B88 #78881B
analogous
#1B4288 #2B1B88 #621B88
triadic
#2B1B88 #882B1B #1B882B
tetradic
#2B1B88 #881B42 #78881B #1B8862
square
#2B1B88 #881B42 #78881B #1B8862
split-complementary
#2B1B88 #88621B #42881B
monochromatic
#0B0722 #1B1155 #2B1B88 #3B25BB #5A44DA

Accessibility & contrast

On white

13.00
#2B1B88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1B88
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B88#FFFFFF#000000##FFFFFF
##2B1B881.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358B
Deuteranopia (green-blind)
#002D86
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2b1b88;
/* rgb */ color: rgb(43, 27, 136);
/* oklch */ color: oklch(33.1% 0.168 278.7);
Tailwind
colors: {
  custom: {
    50: '#735bac',
    500: '#2b1b88',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b88;
$custom-light: #735bac;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b88",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 136
  },
  "hsl": {
    "h": 248.807,
    "s": 66.871,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33125,
    "c": 0.16781,
    "h": 278.7
  },
  "luminance": 0.03075
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B1B88

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

Preview Lab → · Contrast checker → · Palette generator →

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