#2B1DB3#2B1DB3

#2B1DB3 is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.3% C 0.217 H 273.3°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#2B1DB3
RGBrgb(43, 29, 179)
HSLhsl(246, 72%, 41%)
HSVhsv(246, 84%, 70%)
CMYKcmyk(76%, 83.8%, 0%, 29.8%)
CIE-LABlab(25.70, 52.86, -74.87)
CIE-LCHlch(25.70, 91.65, 305.22°)
OKLaboklab(38.31% 0.0124 -0.2165)
OKLCHoklch(38.31% 0.217 273.3)
XYZxyz(9.5696, 4.6460, 43.0315)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1DB3 #A5B31D
analogous
#1D5AB3 #2B1DB3 #761DB3
triadic
#2B1DB3 #B32B1D #1DB32B
tetradic
#2B1DB3 #B31D5A #A5B31D #1DB376
square
#2B1DB3 #B31D5A #A5B31D #1DB376
split-complementary
#2B1DB3 #B3761D #5AB31D
monochromatic
#120C4A #1E147E #2B1DB3 #4030DD #7164E6

Accessibility & contrast

On white

10.88
#2B1DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2B1DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1DB3
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1DB3#FFFFFF#000000##FFFFFF
##2B1DB31.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B7
Deuteranopia (green-blind)
#0036B1
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2b1db3;
/* rgb */ color: rgb(43, 29, 179);
/* oklch */ color: oklch(38.3% 0.217 273.3);
Tailwind
colors: {
  custom: {
    50: '#7d5fcb',
    500: '#2b1db3',
    950: '#000000',
  },
}
SCSS
$custom: #2b1db3;
$custom-light: #7d5fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1db3",
  "rgb": {
    "r": 43,
    "g": 29,
    "b": 179
  },
  "hsl": {
    "h": 245.6,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38305,
    "c": 0.21689,
    "h": 273.3
  },
  "luminance": 0.04647
}

Semantic roles & 50–950 ramp

primary
#2B1DB3
secondary
#C1CB61
accent
#EF39DE
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #2B1DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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