#2B1F84#2B1F84

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

Color values

HEX#2B1F84
RGBrgb(43, 31, 132)
HSLhsl(247, 62%, 32%)
HSVhsv(247, 77%, 52%)
CMYKcmyk(67.4%, 76.5%, 0%, 48.2%)
CIE-LABlab(20.67, 37.08, -54.38)
CIE-LCHlch(20.67, 65.82, 304.29°)
OKLaboklab(33.23% 0.0239 -0.157)
OKLCHoklch(33.23% 0.159 278.7)
XYZxyz(5.6498, 3.1590, 22.1373)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1F84 #78841F
analogous
#1F4684 #2B1F84 #5E1F84
triadic
#2B1F84 #842B1F #1F842B
tetradic
#2B1F84 #841F46 #78841F #1F845E
square
#2B1F84 #841F46 #78841F #1F845E
split-complementary
#2B1F84 #845E1F #46841F
monochromatic
#0B0821 #1B1352 #2B1F84 #3B2BB6 #5A49D4

Accessibility & contrast

On white

12.87
#2B1F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1F84
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1F84#FFFFFF#000000##FFFFFF
##2B1F841.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003687
Deuteranopia (green-blind)
#002E82
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b1f84;
/* rgb */ color: rgb(43, 31, 132);
/* oklch */ color: oklch(33.2% 0.159 278.7);
Tailwind
colors: {
  custom: {
    50: '#715da9',
    500: '#2b1f84',
    950: '#000000',
  },
}
SCSS
$custom: #2b1f84;
$custom-light: #715da9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1f84",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 247.129,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33227,
    "c": 0.15883,
    "h": 278.7
  },
  "luminance": 0.0316
}

Semantic roles & 50–950 ramp

primary
#2B1F84
secondary
#AAB748
accent
#E543D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1F84

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

Preview Lab → · Contrast checker → · Palette generator →

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