#2B1D7E#2B1D7E

#2B1D7E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.153 H 280.0°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#2B1D7E
RGBrgb(43, 29, 126)
HSLhsl(249, 63%, 30%)
HSVhsv(249, 77%, 49%)
CMYKcmyk(65.9%, 77%, 0%, 50.6%)
CIE-LABlab(19.63, 36.23, -52.29)
CIE-LCHlch(19.63, 63.62, 304.72°)
OKLaboklab(32.3% 0.0267 -0.1509)
OKLCHoklch(32.3% 0.153 280)
XYZxyz(5.2003, 2.8983, 20.0200)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1D7E #707E1D
analogous
#1D3F7E #2B1D7E #5B1D7E
triadic
#2B1D7E #7E2B1D #1D7E2B
tetradic
#2B1D7E #7E1D3F #707E1D #1D7E5B
square
#2B1D7E #7E1D3F #707E1D #1D7E5B
split-complementary
#2B1D7E #7E5B1D #3F7E1D
monochromatic
#09061B #1A124C #2B1D7E #3C28B0 #5742D3

Accessibility & contrast

On white

13.29
#2B1D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2B1D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1D7E
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1D7E#FFFFFF#000000##FFFFFF
##2B1D7E1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b1d7e;
/* rgb */ color: rgb(43, 29, 126);
/* oklch */ color: oklch(32.3% 0.153 280.0);
Tailwind
colors: {
  custom: {
    50: '#705ba4',
    500: '#2b1d7e',
    950: '#000000',
  },
}
SCSS
$custom: #2b1d7e;
$custom-light: #705ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1d7e",
  "rgb": {
    "r": 43,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 248.66,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32303,
    "c": 0.15326,
    "h": 280
  },
  "luminance": 0.02899
}

Semantic roles & 50–950 ramp

primary
#2B1D7E
secondary
#A2B145
accent
#E642CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B1D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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