#2B1D8D#2B1D8D

#2B1D8D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.9% C 0.172 H 277.6°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#2B1D8D
RGBrgb(43, 29, 141)
HSLhsl(248, 66%, 33%)
HSVhsv(248, 79%, 55%)
CMYKcmyk(69.5%, 79.4%, 0%, 44.7%)
CIE-LABlab(21.26, 41.11, -59.04)
CIE-LCHlch(21.26, 71.94, 304.85°)
OKLaboklab(33.94% 0.0228 -0.1706)
OKLCHoklch(33.94% 0.172 277.6)
XYZxyz(6.2418, 3.3149, 25.5050)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1D8D #7F8D1D
analogous
#1D478D #2B1D8D #631D8D
triadic
#2B1D8D #8D2B1D #1D8D2B
tetradic
#2B1D8D #8D1D47 #7F8D1D #1D8D63
square
#2B1D8D #8D1D47 #7F8D1D #1D8D63
split-complementary
#2B1D8D #8D631D #478D1D
monochromatic
#0C0827 #1C135A #2B1D8D #3A27C0 #5C4BDA

Accessibility & contrast

On white

12.63
#2B1D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2B1D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1D8D
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1D8D#FFFFFF#000000##FFFFFF
##2B1D8D1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1d8d;
/* rgb */ color: rgb(43, 29, 141);
/* oklch */ color: oklch(33.9% 0.172 277.6);
Tailwind
colors: {
  custom: {
    50: '#745cb0',
    500: '#2b1d8d',
    950: '#000000',
  },
}
SCSS
$custom: #2b1d8d;
$custom-light: #745cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1d8d",
  "rgb": {
    "r": 43,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 247.5,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33936,
    "c": 0.1721,
    "h": 277.6
  },
  "luminance": 0.03315
}

Semantic roles & 50–950 ramp

primary
#2B1D8D
secondary
#AEBC4A
accent
#E93FD4
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #2B1D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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