#2B1D84#2B1D84

#2B1D84 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.161 H 279.0°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#2B1D84
RGBrgb(43, 29, 132)
HSLhsl(248, 64%, 32%)
HSVhsv(248, 78%, 52%)
CMYKcmyk(67.4%, 78%, 0%, 48.2%)
CIE-LABlab(20.27, 38.20, -55.03)
CIE-LCHlch(20.27, 66.99, 304.76°)
OKLaboklab(32.95% 0.0252 -0.1589)
OKLCHoklch(32.95% 0.161 279)
XYZxyz(5.5991, 3.0578, 22.1205)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1D84 #76841D
analogous
#1D4384 #2B1D84 #5F1D84
triadic
#2B1D84 #842B1D #1D842B
tetradic
#2B1D84 #841D43 #76841D #1D845F
square
#2B1D84 #841D43 #76841D #1D845F
split-complementary
#2B1D84 #845F1D #43841D
monochromatic
#0A0720 #1B1252 #2B1D84 #3B28B6 #5945D6

Accessibility & contrast

On white

13.03
#2B1D84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2B1D84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1D84
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1D84#FFFFFF#000000##FFFFFF
##2B1D841.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003587
Deuteranopia (green-blind)
#002D82
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2b1d84;
/* rgb */ color: rgb(43, 29, 132);
/* oklch */ color: oklch(32.9% 0.161 279.0);
Tailwind
colors: {
  custom: {
    50: '#725ba9',
    500: '#2b1d84',
    950: '#000000',
  },
}
SCSS
$custom: #2b1d84;
$custom-light: #725ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1d84",
  "rgb": {
    "r": 43,
    "g": 29,
    "b": 132
  },
  "hsl": {
    "h": 248.155,
    "s": 63.975,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32948,
    "c": 0.16089,
    "h": 279
  },
  "luminance": 0.03058
}

Semantic roles & 50–950 ramp

primary
#2B1D84
secondary
#A8B746
accent
#E741D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1D84

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

Preview Lab → · Contrast checker → · Palette generator →

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