#2B1D96#2B1D96

#2B1D96 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.183 H 276.4°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#2B1D96
RGBrgb(43, 29, 150)
HSLhsl(247, 68%, 35%)
HSVhsv(247, 81%, 59%)
CMYKcmyk(71.3%, 80.7%, 0%, 41.2%)
CIE-LABlab(22.28, 43.97, -62.94)
CIE-LCHlch(22.28, 76.78, 304.94°)
OKLaboklab(34.95% 0.0204 -0.1819)
OKLCHoklch(34.95% 0.183 276.4)
XYZxyz(6.9388, 3.5937, 29.1762)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1D96 #88961D
analogous
#1D4C96 #2B1D96 #671D96
triadic
#2B1D96 #962B1D #1D962B
tetradic
#2B1D96 #961D4C #88961D #1D9667
square
#2B1D96 #961D4C #88961D #1D9667
split-complementary
#2B1D96 #96671D #4C961D
monochromatic
#0E092F #1C1363 #2B1D96 #3A27C9 #6150DD

Accessibility & contrast

On white

12.22
#2B1D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2B1D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1D96
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1D96#FFFFFF#000000##FFFFFF
##2B1D961.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#003094
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b1d96;
/* rgb */ color: rgb(43, 29, 150);
/* oklch */ color: oklch(34.9% 0.183 276.4);
Tailwind
colors: {
  custom: {
    50: '#765db6',
    500: '#2b1d96',
    950: '#000000',
  },
}
SCSS
$custom: #2b1d96;
$custom-light: #765db6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1d96",
  "rgb": {
    "r": 43,
    "g": 29,
    "b": 150
  },
  "hsl": {
    "h": 246.942,
    "s": 67.598,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34945,
    "c": 0.18306,
    "h": 276.4
  },
  "luminance": 0.03594
}

Semantic roles & 50–950 ramp

primary
#2B1D96
secondary
#B3C04F
accent
#EA3DD6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1D96

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

Preview Lab → · Contrast checker → · Palette generator →

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