#2B1D8B#2B1D8B

#2B1D8B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.170 H 277.9°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#2B1D8B
RGBrgb(43, 29, 139)
HSLhsl(248, 65%, 33%)
HSVhsv(248, 79%, 55%)
CMYKcmyk(69.1%, 79.1%, 0%, 45.5%)
CIE-LABlab(21.04, 40.46, -58.16)
CIE-LCHlch(21.04, 70.85, 304.83°)
OKLaboklab(33.72% 0.0233 -0.168)
OKLCHoklch(33.72% 0.17 277.9)
XYZxyz(6.0943, 3.2559, 24.7284)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1D8B #7D8B1D
analogous
#1D468B #2B1D8B #621D8B
triadic
#2B1D8B #8B2B1D #1D8B2B
tetradic
#2B1D8B #8B1D46 #7D8B1D #1D8B62
square
#2B1D8B #8B1D46 #7D8B1D #1D8B62
split-complementary
#2B1D8B #8B621D #468B1D
monochromatic
#0C0826 #1B1258 #2B1D8B #3B28BE #5C49D9

Accessibility & contrast

On white

12.72
#2B1D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2B1D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1D8B
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1D8B#FFFFFF#000000##FFFFFF
##2B1D8B1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#002E89
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2b1d8b;
/* rgb */ color: rgb(43, 29, 139);
/* oklch */ color: oklch(33.7% 0.170 277.9);
Tailwind
colors: {
  custom: {
    50: '#735cae',
    500: '#2b1d8b',
    950: '#000000',
  },
}
SCSS
$custom: #2b1d8b;
$custom-light: #735cae;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1d8b",
  "rgb": {
    "r": 43,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 247.636,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33715,
    "c": 0.16963,
    "h": 277.9
  },
  "luminance": 0.03256
}

Semantic roles & 50–950 ramp

primary
#2B1D8B
secondary
#ADBB49
accent
#E83FD3
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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