#2B1CAB#2B1CAB

#2B1CAB is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.3% C 0.208 H 274.1°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#2B1CAB
RGBrgb(43, 28, 171)
HSLhsl(246, 72%, 39%)
HSVhsv(246, 84%, 67%)
CMYKcmyk(74.9%, 83.6%, 0%, 32.9%)
CIE-LABlab(24.59, 50.91, -71.92)
CIE-LCHlch(24.59, 88.11, 305.29°)
OKLaboklab(37.26% 0.0149 -0.208)
OKLCHoklch(37.26% 0.208 274.1)
XYZxyz(8.7598, 4.2835, 38.8853)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1CAB #9CAB1C
analogous
#1C55AB #2B1CAB #731CAB
triadic
#2B1CAB #AB2B1C #1CAB2B
tetradic
#2B1CAB #AB1C55 #9CAB1C #1CAB73
square
#2B1CAB #AB1C55 #9CAB1C #1CAB73
split-complementary
#2B1CAB #AB731C #55AB1C
monochromatic
#110B42 #1E1376 #2B1CAB #3B28DC #6B5DE4

Accessibility & contrast

On white

11.31
#2B1CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2B1CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1CAB
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1CAB#FFFFFF#000000##FFFFFF
##2B1CAB1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AF
Deuteranopia (green-blind)
#0034A9
Tritanopia (blue-blind)
#004A66
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b1cab;
/* rgb */ color: rgb(43, 28, 171);
/* oklch */ color: oklch(37.3% 0.208 274.1);
Tailwind
colors: {
  custom: {
    50: '#7b5ec5',
    500: '#2b1cab',
    950: '#000000',
  },
}
SCSS
$custom: #2b1cab;
$custom-light: #7b5ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1cab",
  "rgb": {
    "r": 43,
    "g": 28,
    "b": 171
  },
  "hsl": {
    "h": 246.294,
    "s": 71.859,
    "l": 39.02
  },
  "oklch": {
    "l": 0.3726,
    "c": 0.20849,
    "h": 274.1
  },
  "luminance": 0.04284
}

Semantic roles & 50–950 ramp

primary
#2B1CAB
secondary
#BDC95A
accent
#EF39DC
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2B1CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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