#2B1D86#2B1D86

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

Color values

HEX#2B1D86
RGBrgb(43, 29, 134)
HSLhsl(248, 64%, 32%)
HSVhsv(248, 78%, 53%)
CMYKcmyk(67.9%, 78.4%, 0%, 47.5%)
CIE-LABlab(20.49, 38.85, -55.93)
CIE-LCHlch(20.49, 68.10, 304.78°)
OKLaboklab(33.17% 0.0246 -0.1615)
OKLCHoklch(33.17% 0.163 278.7)
XYZxyz(5.7373, 3.1131, 22.8482)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1D86 #78861D
analogous
#1D4486 #2B1D86 #601D86
triadic
#2B1D86 #862B1D #1D862B
tetradic
#2B1D86 #861D44 #78861D #1D8660
square
#2B1D86 #861D44 #78861D #1D8660
split-complementary
#2B1D86 #86601D #44861D
monochromatic
#0B0721 #1B1254 #2B1D86 #3B28B8 #5A46D7

Accessibility & contrast

On white

12.94
#2B1D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1D86
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1D86#FFFFFF#000000##FFFFFF
##2B1D861.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002D84
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2b1d86;
/* rgb */ color: rgb(43, 29, 134);
/* oklch */ color: oklch(33.2% 0.163 278.7);
Tailwind
colors: {
  custom: {
    50: '#725caa',
    500: '#2b1d86',
    950: '#000000',
  },
}
SCSS
$custom: #2b1d86;
$custom-light: #725caa;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1d86",
  "rgb": {
    "r": 43,
    "g": 29,
    "b": 134
  },
  "hsl": {
    "h": 248,
    "s": 64.417,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33166,
    "c": 0.1634,
    "h": 278.7
  },
  "luminance": 0.03114
}

Semantic roles & 50–950 ramp

primary
#2B1D86
secondary
#AAB946
accent
#E740D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1D86

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

Preview Lab → · Contrast checker → · Palette generator →

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