#2B1D99#2B1D99

#2B1D99 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.187 H 276.0°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#2B1D99
RGBrgb(43, 29, 153)
HSLhsl(247, 68%, 36%)
HSVhsv(247, 81%, 60%)
CMYKcmyk(71.9%, 81%, 0%, 40%)
CIE-LABlab(22.62, 44.92, -64.22)
CIE-LCHlch(22.62, 78.37, 304.97°)
OKLaboklab(35.29% 0.0196 -0.1856)
OKLCHoklch(35.29% 0.187 276)
XYZxyz(7.1835, 3.6915, 30.4648)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1D99 #8B991D
analogous
#1D4D99 #2B1D99 #691D99
triadic
#2B1D99 #992B1D #1D992B
tetradic
#2B1D99 #991D4D #8B991D #1D9969
square
#2B1D99 #991D4D #8B991D #1D9969
split-complementary
#2B1D99 #99691D #4D991D
monochromatic
#0E0932 #1D1366 #2B1D99 #3927CC #6252DE

Accessibility & contrast

On white

12.08
#2B1D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2B1D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1D99
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1D99#FFFFFF#000000##FFFFFF
##2B1D991.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9C
Deuteranopia (green-blind)
#003197
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2b1d99;
/* rgb */ color: rgb(43, 29, 153);
/* oklch */ color: oklch(35.3% 0.187 276.0);
Tailwind
colors: {
  custom: {
    50: '#765db8',
    500: '#2b1d99',
    950: '#000000',
  },
}
SCSS
$custom: #2b1d99;
$custom-light: #765db8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1d99",
  "rgb": {
    "r": 43,
    "g": 29,
    "b": 153
  },
  "hsl": {
    "h": 246.774,
    "s": 68.132,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35286,
    "c": 0.18666,
    "h": 276
  },
  "luminance": 0.03692
}

Semantic roles & 50–950 ramp

primary
#2B1D99
secondary
#B5C151
accent
#EB3DD7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2B1D99

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

Preview Lab → · Contrast checker → · Palette generator →

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