#2B1F86#2B1F86

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

Color values

HEX#2B1F86
RGBrgb(43, 31, 134)
HSLhsl(247, 62%, 32%)
HSVhsv(247, 77%, 53%)
CMYKcmyk(67.9%, 76.9%, 0%, 47.5%)
CIE-LABlab(20.88, 37.74, -55.29)
CIE-LCHlch(20.88, 66.94, 304.32°)
OKLaboklab(33.44% 0.0234 -0.1597)
OKLCHoklch(33.44% 0.161 278.3)
XYZxyz(5.7879, 3.2143, 22.8650)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1F86 #7A861F
analogous
#1F4786 #2B1F86 #5E1F86
triadic
#2B1F86 #862B1F #1F862B
tetradic
#2B1F86 #861F47 #7A861F #1F865E
square
#2B1F86 #861F47 #7A861F #1F865E
split-complementary
#2B1F86 #865E1F #47861F
monochromatic
#0B0823 #1B1454 #2B1F86 #3B2AB8 #5A4AD5

Accessibility & contrast

On white

12.78
#2B1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2B1F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1F86
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1F86#FFFFFF#000000##FFFFFF
##2B1F861.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b1f86;
/* rgb */ color: rgb(43, 31, 134);
/* oklch */ color: oklch(33.4% 0.161 278.3);
Tailwind
colors: {
  custom: {
    50: '#725daa',
    500: '#2b1f86',
    950: '#000000',
  },
}
SCSS
$custom: #2b1f86;
$custom-light: #725daa;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1f86",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 246.99,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33441,
    "c": 0.16138,
    "h": 278.3
  },
  "luminance": 0.03215
}

Semantic roles & 50–950 ramp

primary
#2B1F86
secondary
#ABB849
accent
#E542D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1F86

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

Preview Lab → · Contrast checker → · Palette generator →

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