#2B1D7D#2B1D7D

#2B1D7D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.152 H 280.2°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#2B1D7D
RGBrgb(43, 29, 125)
HSLhsl(249, 62%, 30%)
HSVhsv(249, 77%, 49%)
CMYKcmyk(65.6%, 76.8%, 0%, 51%)
CIE-LABlab(19.53, 35.90, -51.83)
CIE-LCHlch(19.53, 63.05, 304.71°)
OKLaboklab(32.2% 0.0269 -0.1496)
OKLCHoklch(32.2% 0.152 280.2)
XYZxyz(5.1361, 2.8726, 19.6819)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1D7D #6F7D1D
analogous
#1D3F7D #2B1D7D #5B1D7D
triadic
#2B1D7D #7D2B1D #1D7D2B
tetradic
#2B1D7D #7D1D3F #6F7D1D #1D7D5B
square
#2B1D7D #7D1D3F #6F7D1D #1D7D5B
split-complementary
#2B1D7D #7D5B1D #3F7D1D
monochromatic
#09061A #1A114B #2B1D7D #3C29AF #5741D3

Accessibility & contrast

On white

13.34
#2B1D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2B1D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1D7D
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1D7D#FFFFFF#000000##FFFFFF
##2B1D7D1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b1d7d;
/* rgb */ color: rgb(43, 29, 125);
/* oklch */ color: oklch(32.2% 0.152 280.2);
Tailwind
colors: {
  custom: {
    50: '#705ba4',
    500: '#2b1d7d',
    950: '#000000',
  },
}
SCSS
$custom: #2b1d7d;
$custom-light: #705ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1d7d",
  "rgb": {
    "r": 43,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 248.75,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32197,
    "c": 0.15197,
    "h": 280.2
  },
  "luminance": 0.02873
}

Semantic roles & 50–950 ramp

primary
#2B1D7D
secondary
#A1B145
accent
#E542CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B1D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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