#2B1C81#2B1C81

#2B1C81 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.158 H 279.7°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#2B1C81
RGBrgb(43, 28, 129)
HSLhsl(249, 64%, 31%)
HSVhsv(249, 78%, 51%)
CMYKcmyk(66.7%, 78.3%, 0%, 49.4%)
CIE-LABlab(19.76, 37.77, -53.99)
CIE-LCHlch(19.76, 65.89, 304.98°)
OKLaboklab(32.49% 0.0266 -0.1559)
OKLCHoklch(32.49% 0.158 279.7)
XYZxyz(5.3727, 2.9286, 21.0468)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1C81 #72811C
analogous
#1C3F81 #2B1C81 #5D1C81
triadic
#2B1C81 #812B1C #1C812B
tetradic
#2B1C81 #811C3F #72811C #1C815D
square
#2B1C81 #811C3F #72811C #1C815D
split-complementary
#2B1C81 #815D1C #3F811C
monochromatic
#09061C #1A114F #2B1C81 #3C27B3 #5842D6

Accessibility & contrast

On white

13.24
#2B1C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2B1C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1C81
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1C81#FFFFFF#000000##FFFFFF
##2B1C811.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002C7F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2b1c81;
/* rgb */ color: rgb(43, 28, 129);
/* oklch */ color: oklch(32.5% 0.158 279.7);
Tailwind
colors: {
  custom: {
    50: '#715ba7',
    500: '#2b1c81',
    950: '#000000',
  },
}
SCSS
$custom: #2b1c81;
$custom-light: #715ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1c81",
  "rgb": {
    "r": 43,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 248.911,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32487,
    "c": 0.15811,
    "h": 279.7
  },
  "luminance": 0.02929
}

Semantic roles & 50–950 ramp

primary
#2B1C81
secondary
#A4B444
accent
#E740CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1C81

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

Preview Lab → · Contrast checker → · Palette generator →

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