#2B1BA7#2B1BA7

#2B1BA7 is a dark, highly saturated blue. Relative luminance 0.041; OKLCH L 36.7% C 0.205 H 274.6°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#2B1BA7
RGBrgb(43, 27, 167)
HSLhsl(247, 72%, 38%)
HSVhsv(247, 84%, 65%)
CMYKcmyk(74.3%, 83.8%, 0%, 34.5%)
CIE-LABlab(23.96, 50.15, -70.55)
CIE-LCHlch(23.96, 86.56, 305.40°)
OKLaboklab(36.69% 0.0163 -0.204)
OKLCHoklch(36.69% 0.205 274.6)
XYZxyz(8.3609, 4.0866, 36.8999)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1BA7 #97A71B
analogous
#1B51A7 #2B1BA7 #711BA7
triadic
#2B1BA7 #A72B1B #1BA72B
tetradic
#2B1BA7 #A71B51 #97A71B #1BA771
square
#2B1BA7 #A71B51 #97A71B #1BA771
split-complementary
#2B1BA7 #A7711B #51A71B
monochromatic
#100A3E #1D1272 #2B1BA7 #3924DC #6858E4

Accessibility & contrast

On white

11.55
#2B1BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2B1BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1BA7
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1BA7#FFFFFF#000000##FFFFFF
##2B1BA71.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FAB
Deuteranopia (green-blind)
#0032A5
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2b1ba7;
/* rgb */ color: rgb(43, 27, 167);
/* oklch */ color: oklch(36.7% 0.205 274.6);
Tailwind
colors: {
  custom: {
    50: '#7a5dc3',
    500: '#2b1ba7',
    950: '#000000',
  },
}
SCSS
$custom: #2b1ba7;
$custom-light: #7a5dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1ba7",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 167
  },
  "hsl": {
    "h": 246.857,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.36687,
    "c": 0.20463,
    "h": 274.6
  },
  "luminance": 0.04087
}

Semantic roles & 50–950 ramp

primary
#2B1BA7
secondary
#BBC856
accent
#EF39DA
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #2B1BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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