#2B1A8D#2B1A8D

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

Color values

HEX#2B1A8D
RGBrgb(43, 26, 141)
HSLhsl(249, 69%, 33%)
HSVhsv(249, 82%, 55%)
CMYKcmyk(69.5%, 81.6%, 0%, 44.7%)
CIE-LABlab(20.73, 42.64, -59.92)
CIE-LCHlch(20.73, 73.55, 305.44°)
OKLaboklab(33.57% 0.0243 -0.1731)
OKLCHoklch(33.57% 0.175 278)
XYZxyz(6.1718, 3.1749, 25.4817)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1A8D #7C8D1A
analogous
#1A428D #2B1A8D #651A8D
triadic
#2B1A8D #8D2B1A #1A8D2B
tetradic
#2B1A8D #8D1A42 #7C8D1A #1A8D65
square
#2B1A8D #8D1A42 #7C8D1A #1A8D65
split-complementary
#2B1A8D #8D651A #428D1A
monochromatic
#0B0726 #1B1059 #2B1A8D #3B24C1 #5B45DD

Accessibility & contrast

On white

12.84
#2B1A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2B1A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1A8D
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1A8D#FFFFFF#000000##FFFFFF
##2B1A8D1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#002D8B
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b1a8d;
/* rgb */ color: rgb(43, 26, 141);
/* oklch */ color: oklch(33.6% 0.175 278.0);
Tailwind
colors: {
  custom: {
    50: '#745ab0',
    500: '#2b1a8d',
    950: '#000000',
  },
}
SCSS
$custom: #2b1a8d;
$custom-light: #745ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1a8d",
  "rgb": {
    "r": 43,
    "g": 26,
    "b": 141
  },
  "hsl": {
    "h": 248.87,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33565,
    "c": 0.1748,
    "h": 278
  },
  "luminance": 0.03175
}

Semantic roles & 50–950 ramp

primary
#2B1A8D
secondary
#ACBE45
accent
#EC3CD2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2B1A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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