#2B1D8A#2B1D8A

#2B1D8A is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.6% C 0.168 H 278.1°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#2B1D8A
RGBrgb(43, 29, 138)
HSLhsl(248, 65%, 33%)
HSVhsv(248, 79%, 54%)
CMYKcmyk(68.8%, 79%, 0%, 45.9%)
CIE-LABlab(20.93, 40.14, -57.72)
CIE-LCHlch(20.93, 70.30, 304.82°)
OKLaboklab(33.6% 0.0236 -0.1667)
OKLCHoklch(33.6% 0.168 278.1)
XYZxyz(6.0216, 3.2268, 24.3453)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1D8A #7C8A1D
analogous
#1D468A #2B1D8A #611D8A
triadic
#2B1D8A #8A2B1D #1D8A2B
tetradic
#2B1D8A #8A1D46 #7C8A1D #1D8A61
square
#2B1D8A #8A1D46 #7C8A1D #1D8A61
split-complementary
#2B1D8A #8A611D #468A1D
monochromatic
#0B0825 #1B1257 #2B1D8A #3B28BD #5B49D9

Accessibility & contrast

On white

12.76
#2B1D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1D8A
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1D8A#FFFFFF#000000##FFFFFF
##2B1D8A1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378D
Deuteranopia (green-blind)
#002E88
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b1d8a;
/* rgb */ color: rgb(43, 29, 138);
/* oklch */ color: oklch(33.6% 0.168 278.1);
Tailwind
colors: {
  custom: {
    50: '#735cad',
    500: '#2b1d8a',
    950: '#000000',
  },
}
SCSS
$custom: #2b1d8a;
$custom-light: #735cad;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1d8a",
  "rgb": {
    "r": 43,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 247.706,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33604,
    "c": 0.16839,
    "h": 278.1
  },
  "luminance": 0.03227
}

Semantic roles & 50–950 ramp

primary
#2B1D8A
secondary
#ACBB48
accent
#E840D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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