#2B1B8D#2B1B8D

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

Color values

HEX#2B1B8D
RGBrgb(43, 27, 141)
HSLhsl(248, 68%, 33%)
HSVhsv(248, 81%, 55%)
CMYKcmyk(69.5%, 80.9%, 0%, 44.7%)
CIE-LABlab(20.90, 42.14, -59.63)
CIE-LCHlch(20.90, 73.02, 305.25°)
OKLaboklab(33.69% 0.0238 -0.1723)
OKLCHoklch(33.69% 0.174 277.9)
XYZxyz(6.1944, 3.2200, 25.4892)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B8D #7D8D1B
analogous
#1B448D #2B1B8D #641B8D
triadic
#2B1B8D #8D2B1B #1B8D2B
tetradic
#2B1B8D #8D1B44 #7D8D1B #1B8D64
square
#2B1B8D #8D1B44 #7D8D1B #1B8D64
split-complementary
#2B1B8D #8D641B #448D1B
monochromatic
#0C0726 #1B115A #2B1B8D #3B25C0 #5C47DC

Accessibility & contrast

On white

12.77
#2B1B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1B8D
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B8D#FFFFFF#000000##FFFFFF
##2B1B8D1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#002D8B
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b1b8d;
/* rgb */ color: rgb(43, 27, 141);
/* oklch */ color: oklch(33.7% 0.174 277.9);
Tailwind
colors: {
  custom: {
    50: '#745bb0',
    500: '#2b1b8d',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b8d;
$custom-light: #745bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b8d",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 248.421,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33686,
    "c": 0.17392,
    "h": 277.9
  },
  "luminance": 0.03221
}

Semantic roles & 50–950 ramp

primary
#2B1B8D
secondary
#ADBD46
accent
#EB3DD2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2B1B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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