#2B1C87#2B1C87

#2B1C87 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.166 H 278.7°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#2B1C87
RGBrgb(43, 28, 135)
HSLhsl(248, 66%, 32%)
HSVhsv(248, 79%, 53%)
CMYKcmyk(68.1%, 79.3%, 0%, 47.1%)
CIE-LABlab(20.41, 39.71, -56.69)
CIE-LCHlch(20.41, 69.22, 305.01°)
OKLaboklab(33.14% 0.025 -0.1637)
OKLCHoklch(33.14% 0.166 278.7)
XYZxyz(5.7833, 3.0929, 23.2092)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1C87 #78871C
analogous
#1C4387 #2B1C87 #611C87
triadic
#2B1C87 #872B1C #1C872B
tetradic
#2B1C87 #871C43 #78871C #1C8761
square
#2B1C87 #871C43 #78871C #1C8761
split-complementary
#2B1C87 #87611C #43871C
monochromatic
#0B0722 #1B1154 #2B1C87 #3B27BA #5A45D8

Accessibility & contrast

On white

12.97
#2B1C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2B1C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1C87
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1C87#FFFFFF#000000##FFFFFF
##2B1C871.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2b1c87;
/* rgb */ color: rgb(43, 28, 135);
/* oklch */ color: oklch(33.1% 0.166 278.7);
Tailwind
colors: {
  custom: {
    50: '#725bab',
    500: '#2b1c87',
    950: '#000000',
  },
}
SCSS
$custom: #2b1c87;
$custom-light: #725bab;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1c87",
  "rgb": {
    "r": 43,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 248.411,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33143,
    "c": 0.16562,
    "h": 278.7
  },
  "luminance": 0.03093
}

Semantic roles & 50–950 ramp

primary
#2B1C87
secondary
#AABA45
accent
#E93FD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1C87

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

Preview Lab → · Contrast checker → · Palette generator →

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