#2B1C84#2B1C84

#2B1C84 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.162 H 279.2°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#2B1C84
RGBrgb(43, 28, 132)
HSLhsl(249, 65%, 31%)
HSVhsv(249, 79%, 52%)
CMYKcmyk(67.4%, 78.8%, 0%, 48.2%)
CIE-LABlab(20.08, 38.74, -55.35)
CIE-LCHlch(20.08, 67.56, 304.99°)
OKLaboklab(32.81% 0.0258 -0.1598)
OKLCHoklch(32.81% 0.162 279.2)
XYZxyz(5.5750, 3.0096, 22.1124)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1C84 #75841C
analogous
#1C4184 #2B1C84 #5F1C84
triadic
#2B1C84 #842B1C #1C842B
tetradic
#2B1C84 #841C41 #75841C #1C845F
square
#2B1C84 #841C41 #75841C #1C845F
split-complementary
#2B1C84 #845F1C #41841C
monochromatic
#0A071F #1B1152 #2B1C84 #3B27B6 #5943D7

Accessibility & contrast

On white

13.11
#2B1C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2B1C84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1C84
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1C84#FFFFFF#000000##FFFFFF
##2B1C841.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002C82
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2b1c84;
/* rgb */ color: rgb(43, 28, 132);
/* oklch */ color: oklch(32.8% 0.162 279.2);
Tailwind
colors: {
  custom: {
    50: '#725ba9',
    500: '#2b1c84',
    950: '#000000',
  },
}
SCSS
$custom: #2b1c84;
$custom-light: #725ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1c84",
  "rgb": {
    "r": 43,
    "g": 28,
    "b": 132
  },
  "hsl": {
    "h": 248.654,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32814,
    "c": 0.16189,
    "h": 279.2
  },
  "luminance": 0.0301
}

Semantic roles & 50–950 ramp

primary
#2B1C84
secondary
#A7B745
accent
#E840D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1C84

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

Preview Lab → · Contrast checker → · Palette generator →

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