#2B1D88#2B1D88

#2B1D88 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.166 H 278.4°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#2B1D88
RGBrgb(43, 29, 136)
HSLhsl(248, 65%, 32%)
HSVhsv(248, 79%, 53%)
CMYKcmyk(68.4%, 78.7%, 0%, 46.7%)
CIE-LABlab(20.71, 39.50, -56.83)
CIE-LCHlch(20.71, 69.21, 304.80°)
OKLaboklab(33.38% 0.0241 -0.1641)
OKLCHoklch(33.38% 0.166 278.4)
XYZxyz(5.8781, 3.1694, 23.5898)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1D88 #7A881D
analogous
#1D4588 #2B1D88 #601D88
triadic
#2B1D88 #882B1D #1D882B
tetradic
#2B1D88 #881D45 #7A881D #1D8860
square
#2B1D88 #881D45 #7A881D #1D8860
split-complementary
#2B1D88 #88601D #45881D
monochromatic
#0B0723 #1B1256 #2B1D88 #3B28BA #5A48D8

Accessibility & contrast

On white

12.85
#2B1D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2B1D88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1D88
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1D88#FFFFFF#000000##FFFFFF
##2B1D881.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#002D86
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b1d88;
/* rgb */ color: rgb(43, 29, 136);
/* oklch */ color: oklch(33.4% 0.166 278.4);
Tailwind
colors: {
  custom: {
    50: '#735cac',
    500: '#2b1d88',
    950: '#000000',
  },
}
SCSS
$custom: #2b1d88;
$custom-light: #735cac;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1d88",
  "rgb": {
    "r": 43,
    "g": 29,
    "b": 136
  },
  "hsl": {
    "h": 247.85,
    "s": 64.848,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33384,
    "c": 0.1659,
    "h": 278.4
  },
  "luminance": 0.0317
}

Semantic roles & 50–950 ramp

primary
#2B1D88
secondary
#ABBA47
accent
#E840D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1D88

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

Preview Lab → · Contrast checker → · Palette generator →

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