#2B1D87#2B1D87

#2B1D87 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.3% C 0.165 H 278.5°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#2B1D87
RGBrgb(43, 29, 135)
HSLhsl(248, 65%, 32%)
HSVhsv(248, 79%, 53%)
CMYKcmyk(68.1%, 78.5%, 0%, 47.1%)
CIE-LABlab(20.60, 39.17, -56.38)
CIE-LCHlch(20.60, 68.65, 304.79°)
OKLaboklab(33.28% 0.0244 -0.1628)
OKLCHoklch(33.28% 0.165 278.5)
XYZxyz(5.8074, 3.1411, 23.2172)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1D87 #79871D
analogous
#1D4487 #2B1D87 #601D87
triadic
#2B1D87 #872B1D #1D872B
tetradic
#2B1D87 #871D44 #79871D #1D8760
square
#2B1D87 #871D44 #79871D #1D8760
split-complementary
#2B1D87 #87601D #44871D
monochromatic
#0B0722 #1B1255 #2B1D87 #3B28B9 #5A47D7

Accessibility & contrast

On white

12.90
#2B1D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2B1D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1D87
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1D87#FFFFFF#000000##FFFFFF
##2B1D871.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1d87;
/* rgb */ color: rgb(43, 29, 135);
/* oklch */ color: oklch(33.3% 0.165 278.5);
Tailwind
colors: {
  custom: {
    50: '#725cab',
    500: '#2b1d87',
    950: '#000000',
  },
}
SCSS
$custom: #2b1d87;
$custom-light: #725cab;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1d87",
  "rgb": {
    "r": 43,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 247.925,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33275,
    "c": 0.16466,
    "h": 278.5
  },
  "luminance": 0.03142
}

Semantic roles & 50–950 ramp

primary
#2B1D87
secondary
#AAB946
accent
#E840D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1D87

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

Preview Lab → · Contrast checker → · Palette generator →

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