#2B1B94#2B1B94

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

Color values

HEX#2B1B94
RGBrgb(43, 27, 148)
HSLhsl(248, 69%, 34%)
HSVhsv(248, 82%, 58%)
CMYKcmyk(70.9%, 81.8%, 0%, 42%)
CIE-LABlab(21.71, 44.34, -62.65)
CIE-LCHlch(21.71, 76.75, 305.29°)
OKLaboklab(34.48% 0.0218 -0.1811)
OKLCHoklch(34.48% 0.182 276.9)
XYZxyz(6.7317, 3.4350, 28.3195)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B94 #84941B
analogous
#1B4894 #2B1B94 #681B94
triadic
#2B1B94 #942B1B #1B942B
tetradic
#2B1B94 #941B48 #84941B #1B9468
square
#2B1B94 #941B48 #84941B #1B9468
split-complementary
#2B1B94 #94681B #48941B
monochromatic
#0D082C #1C1260 #2B1B94 #3A24C8 #5F4BDE

Accessibility & contrast

On white

12.45
#2B1B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2B1B94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1B94
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B94#FFFFFF#000000##FFFFFF
##2B1B941.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003997
Deuteranopia (green-blind)
#002F92
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2b1b94;
/* rgb */ color: rgb(43, 27, 148);
/* oklch */ color: oklch(34.5% 0.182 276.9);
Tailwind
colors: {
  custom: {
    50: '#765bb5',
    500: '#2b1b94',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b94;
$custom-light: #765bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b94",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 148
  },
  "hsl": {
    "h": 247.934,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3448,
    "c": 0.18237,
    "h": 276.9
  },
  "luminance": 0.03436
}

Semantic roles & 50–950 ramp

primary
#2B1B94
secondary
#B1C04B
accent
#EC3CD5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1B94

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

Preview Lab → · Contrast checker → · Palette generator →

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