#2B1B80#2B1B80

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

Color values

HEX#2B1B80
RGBrgb(43, 27, 128)
HSLhsl(250, 65%, 30%)
HSVhsv(250, 79%, 50%)
CMYKcmyk(66.4%, 78.9%, 0%, 49.8%)
CIE-LABlab(19.46, 37.99, -53.85)
CIE-LCHlch(19.46, 65.90, 305.20°)
OKLaboklab(32.24% 0.0275 -0.1554)
OKLCHoklch(32.24% 0.158 280)
XYZxyz(5.2832, 2.8556, 20.6907)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B80 #70801B
analogous
#1B3D80 #2B1B80 #5D1B80
triadic
#2B1B80 #802B1B #1B802B
tetradic
#2B1B80 #801B3D #70801B #1B805D
square
#2B1B80 #801B3D #70801B #1B805D
split-complementary
#2B1B80 #805D1B #3D801B
monochromatic
#09061B #1A104D #2B1B80 #3C26B3 #573FD6

Accessibility & contrast

On white

13.37
#2B1B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2B1B80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1B80
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B80#FFFFFF#000000##FFFFFF
##2B1B801.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002B7E
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b1b80;
/* rgb */ color: rgb(43, 27, 128);
/* oklch */ color: oklch(32.2% 0.158 280.0);
Tailwind
colors: {
  custom: {
    50: '#715aa6',
    500: '#2b1b80',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b80;
$custom-light: #715aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b80",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 128
  },
  "hsl": {
    "h": 249.505,
    "s": 65.161,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32244,
    "c": 0.15786,
    "h": 280
  },
  "luminance": 0.02856
}

Semantic roles & 50–950 ramp

primary
#2B1B80
secondary
#A2B443
accent
#E840CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2B1B80

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

Preview Lab → · Contrast checker → · Palette generator →

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