#2B1B93#2B1B93

#2B1B93 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.4% C 0.181 H 277.0°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#2B1B93
RGBrgb(43, 27, 147)
HSLhsl(248, 69%, 34%)
HSVhsv(248, 82%, 58%)
CMYKcmyk(70.7%, 81.6%, 0%, 42.4%)
CIE-LABlab(21.59, 44.03, -62.22)
CIE-LCHlch(21.59, 76.22, 305.28°)
OKLaboklab(34.37% 0.0221 -0.1798)
OKLCHoklch(34.37% 0.181 277)
XYZxyz(6.6529, 3.4034, 27.9044)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B93 #83931B
analogous
#1B4793 #2B1B93 #671B93
triadic
#2B1B93 #932B1B #1B932B
tetradic
#2B1B93 #931B47 #83931B #1B9367
square
#2B1B93 #931B47 #83931B #1B9367
split-complementary
#2B1B93 #93671B #47931B
monochromatic
#0D082C #1C125F #2B1B93 #3A24C7 #5E4BDE

Accessibility & contrast

On white

12.49
#2B1B93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2B1B93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1B93
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B93#FFFFFF#000000##FFFFFF
##2B1B931.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003996
Deuteranopia (green-blind)
#002F91
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2b1b93;
/* rgb */ color: rgb(43, 27, 147);
/* oklch */ color: oklch(34.4% 0.181 277.0);
Tailwind
colors: {
  custom: {
    50: '#755bb4',
    500: '#2b1b93',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b93;
$custom-light: #755bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b93",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 147
  },
  "hsl": {
    "h": 248,
    "s": 68.966,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34366,
    "c": 0.18118,
    "h": 277
  },
  "luminance": 0.03404
}

Semantic roles & 50–950 ramp

primary
#2B1B93
secondary
#B0C04A
accent
#EC3CD4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1B93

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

Preview Lab → · Contrast checker → · Palette generator →

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