#2B1A96#2B1A96

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

Color values

HEX#2B1A96
RGBrgb(43, 26, 150)
HSLhsl(248, 70%, 35%)
HSVhsv(248, 83%, 59%)
CMYKcmyk(71.3%, 82.7%, 0%, 41.2%)
CIE-LABlab(21.78, 45.44, -63.77)
CIE-LCHlch(21.78, 78.30, 305.47°)
OKLaboklab(34.6% 0.0217 -0.1843)
OKLCHoklch(34.6% 0.186 276.7)
XYZxyz(6.8689, 3.4538, 29.1529)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1A96 #85961A
analogous
#1A4796 #2B1A96 #691A96
triadic
#2B1A96 #962B1A #1A962B
tetradic
#2B1A96 #961A47 #85961A #1A9669
square
#2B1A96 #961A47 #85961A #1A9669
split-complementary
#2B1A96 #96691A #47961A
monochromatic
#0D082E #1C1162 #2B1A96 #3A23CA #5F4BE0

Accessibility & contrast

On white

12.42
#2B1A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1A96
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1A96#FFFFFF#000000##FFFFFF
##2B1A961.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003999
Deuteranopia (green-blind)
#002F94
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2b1a96;
/* rgb */ color: rgb(43, 26, 150);
/* oklch */ color: oklch(34.6% 0.186 276.7);
Tailwind
colors: {
  custom: {
    50: '#765bb6',
    500: '#2b1a96',
    950: '#000000',
  },
}
SCSS
$custom: #2b1a96;
$custom-light: #765bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1a96",
  "rgb": {
    "r": 43,
    "g": 26,
    "b": 150
  },
  "hsl": {
    "h": 248.226,
    "s": 70.455,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34596,
    "c": 0.18557,
    "h": 276.7
  },
  "luminance": 0.03454
}

Semantic roles & 50–950 ramp

primary
#2B1A96
secondary
#B1C24A
accent
#ED3BD5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1A96

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

Preview Lab → · Contrast checker → · Palette generator →

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