#2B1A93#2B1A93

#2B1A93 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.182 H 277.1°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#2B1A93
RGBrgb(43, 26, 147)
HSLhsl(248, 70%, 34%)
HSVhsv(248, 82%, 58%)
CMYKcmyk(70.7%, 82.3%, 0%, 42.4%)
CIE-LABlab(21.43, 44.51, -62.50)
CIE-LCHlch(21.43, 76.73, 305.46°)
OKLaboklab(34.25% 0.0226 -0.1806)
OKLCHoklch(34.25% 0.182 277.1)
XYZxyz(6.6304, 3.3584, 27.8969)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1A93 #82931A
analogous
#1A4693 #2B1A93 #681A93
triadic
#2B1A93 #932B1A #1A932B
tetradic
#2B1A93 #931A46 #82931A #1A9368
square
#2B1A93 #931A46 #82931A #1A9368
split-complementary
#2B1A93 #93681A #46931A
monochromatic
#0D082B #1C115F #2B1A93 #3A23C7 #5E49DF

Accessibility & contrast

On white

12.56
#2B1A93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2B1A93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1A93
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1A93#FFFFFF#000000##FFFFFF
##2B1A931.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003896
Deuteranopia (green-blind)
#002E91
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2b1a93;
/* rgb */ color: rgb(43, 26, 147);
/* oklch */ color: oklch(34.3% 0.182 277.1);
Tailwind
colors: {
  custom: {
    50: '#755bb4',
    500: '#2b1a93',
    950: '#000000',
  },
}
SCSS
$custom: #2b1a93;
$custom-light: #755bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1a93",
  "rgb": {
    "r": 43,
    "g": 26,
    "b": 147
  },
  "hsl": {
    "h": 248.43,
    "s": 69.942,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3425,
    "c": 0.182,
    "h": 277.1
  },
  "luminance": 0.03359
}

Semantic roles & 50–950 ramp

primary
#2B1A93
secondary
#B0C048
accent
#ED3BD4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1A93

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

Preview Lab → · Contrast checker → · Palette generator →

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