#2B1B97#2B1B97

#2B1B97 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.8% C 0.186 H 276.5°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#2B1B97
RGBrgb(43, 27, 151)
HSLhsl(248, 70%, 35%)
HSVhsv(248, 82%, 59%)
CMYKcmyk(71.5%, 82.1%, 0%, 40.8%)
CIE-LABlab(22.06, 45.27, -63.93)
CIE-LCHlch(22.06, 78.33, 305.30°)
OKLaboklab(34.82% 0.021 -0.1848)
OKLCHoklch(34.82% 0.186 276.5)
XYZxyz(6.9723, 3.5312, 29.5863)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B97 #87971B
analogous
#1B4997 #2B1B97 #691B97
triadic
#2B1B97 #972B1B #1B972B
tetradic
#2B1B97 #971B49 #87971B #1B9769
square
#2B1B97 #971B49 #87971B #1B9769
split-complementary
#2B1B97 #97691B #49971B
monochromatic
#0D082F #1C1263 #2B1B97 #3A24CB #604DDF

Accessibility & contrast

On white

12.31
#2B1B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2B1B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1B97
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B97#FFFFFF#000000##FFFFFF
##2B1B971.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9A
Deuteranopia (green-blind)
#002F95
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b1b97;
/* rgb */ color: rgb(43, 27, 151);
/* oklch */ color: oklch(34.8% 0.186 276.5);
Tailwind
colors: {
  custom: {
    50: '#765cb7',
    500: '#2b1b97',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b97;
$custom-light: #765cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b97",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 247.742,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34824,
    "c": 0.18595,
    "h": 276.5
  },
  "luminance": 0.03532
}

Semantic roles & 50–950 ramp

primary
#2B1B97
secondary
#B2C14C
accent
#EC3BD6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1B97

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

Preview Lab → · Contrast checker → · Palette generator →

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