#2B1D97#2B1D97

#2B1D97 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.1% C 0.184 H 276.3°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#2B1D97
RGBrgb(43, 29, 151)
HSLhsl(247, 68%, 35%)
HSVhsv(247, 81%, 59%)
CMYKcmyk(71.5%, 80.8%, 0%, 40.8%)
CIE-LABlab(22.39, 44.29, -63.37)
CIE-LCHlch(22.39, 77.31, 304.95°)
OKLaboklab(35.06% 0.0201 -0.1832)
OKLCHoklch(35.06% 0.184 276.3)
XYZxyz(7.0197, 3.6260, 29.6021)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1D97 #89971D
analogous
#1D4C97 #2B1D97 #681D97
triadic
#2B1D97 #972B1D #1D972B
tetradic
#2B1D97 #971D4C #89971D #1D9768
square
#2B1D97 #971D4C #89971D #1D9768
split-complementary
#2B1D97 #97681D #4C971D
monochromatic
#0E0930 #1C1364 #2B1D97 #3A27CA #6151DE

Accessibility & contrast

On white

12.17
#2B1D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2B1D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1D97
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1D97#FFFFFF#000000##FFFFFF
##2B1D971.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#003095
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2b1d97;
/* rgb */ color: rgb(43, 29, 151);
/* oklch */ color: oklch(35.1% 0.184 276.3);
Tailwind
colors: {
  custom: {
    50: '#765db7',
    500: '#2b1d97',
    950: '#000000',
  },
}
SCSS
$custom: #2b1d97;
$custom-light: #765db7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1d97",
  "rgb": {
    "r": 43,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 246.885,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35059,
    "c": 0.18426,
    "h": 276.3
  },
  "luminance": 0.03627
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B1D97

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

Preview Lab → · Contrast checker → · Palette generator →

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