#2B1E71#2B1E71

#2B1E71 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.1% C 0.135 H 282.3°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#2B1E71
RGBrgb(43, 30, 113)
HSLhsl(249, 58%, 28%)
HSVhsv(249, 73%, 44%)
CMYKcmyk(61.9%, 73.5%, 0%, 55.7%)
CIE-LABlab(18.51, 31.31, -45.80)
CIE-LCHlch(18.51, 55.48, 304.36°)
OKLaboklab(31.11% 0.0288 -0.1319)
OKLCHoklch(31.11% 0.135 282.3)
XYZxyz(4.4402, 2.6341, 15.8940)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1E71 #64711E
analogous
#1E3A71 #2B1E71 #541E71
triadic
#2B1E71 #712B1E #1E712B
tetradic
#2B1E71 #711E3A #64711E #1E7154
square
#2B1E71 #711E3A #64711E #1E7154
split-complementary
#2B1E71 #71541E #3A711E
monochromatic
#090618 #191141 #2B1E71 #3D2BA1 #543ECC

Accessibility & contrast

On white

13.75
#2B1E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2B1E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1E71
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1E71#FFFFFF#000000##FFFFFF
##2B1E711.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#002A6F
Tritanopia (blue-blind)
#003445
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2b1e71;
/* rgb */ color: rgb(43, 30, 113);
/* oklch */ color: oklch(31.1% 0.135 282.3);
Tailwind
colors: {
  custom: {
    50: '#6d5b9b',
    500: '#2b1e71',
    950: '#000000',
  },
}
SCSS
$custom: #2b1e71;
$custom-light: #6d5b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1e71",
  "rgb": {
    "r": 43,
    "g": 30,
    "b": 113
  },
  "hsl": {
    "h": 249.398,
    "s": 58.042,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31107,
    "c": 0.13504,
    "h": 282.3
  },
  "luminance": 0.02634
}

Semantic roles & 50–950 ramp

primary
#2B1E71
secondary
#96A546
accent
#E147C9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2B1E71

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

Preview Lab → · Contrast checker → · Palette generator →

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