#2B1E7D#2B1E7D

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

Color values

HEX#2B1E7D
RGBrgb(43, 30, 125)
HSLhsl(248, 61%, 30%)
HSVhsv(248, 76%, 49%)
CMYKcmyk(65.6%, 76%, 0%, 51%)
CIE-LABlab(19.73, 35.33, -51.50)
CIE-LCHlch(19.73, 62.45, 304.45°)
OKLaboklab(32.34% 0.0262 -0.1486)
OKLCHoklch(32.34% 0.151 280)
XYZxyz(5.1610, 2.9224, 19.6902)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1E7D #707D1E
analogous
#1E407D #2B1E7D #5B1E7D
triadic
#2B1E7D #7D2B1E #1E7D2B
tetradic
#2B1E7D #7D1E40 #707D1E #1E7D5B
square
#2B1E7D #7D1E40 #707D1E #1E7D5B
split-complementary
#2B1E7D #7D5B1E #407D1E
monochromatic
#09061A #1A124C #2B1E7D #3C2AAE #5743D2

Accessibility & contrast

On white

13.25
#2B1E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1E7D
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1E7D#FFFFFF#000000##FFFFFF
##2B1E7D1.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2b1e7d;
/* rgb */ color: rgb(43, 30, 125);
/* oklch */ color: oklch(32.3% 0.151 280.0);
Tailwind
colors: {
  custom: {
    50: '#705ca4',
    500: '#2b1e7d',
    950: '#000000',
  },
}
SCSS
$custom: #2b1e7d;
$custom-light: #705ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1e7d",
  "rgb": {
    "r": 43,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 248.211,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32342,
    "c": 0.15088,
    "h": 280
  },
  "luminance": 0.02923
}

Semantic roles & 50–950 ramp

primary
#2B1E7D
secondary
#A2B046
accent
#E443CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B1E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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