#2B1E82#2B1E82

#2B1E82 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.157 H 279.2°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#2B1E82
RGBrgb(43, 30, 130)
HSLhsl(248, 63%, 31%)
HSVhsv(248, 77%, 51%)
CMYKcmyk(66.9%, 76.9%, 0%, 49%)
CIE-LABlab(20.26, 36.98, -53.80)
CIE-LCHlch(20.26, 65.28, 304.51°)
OKLaboklab(32.87% 0.025 -0.1553)
OKLCHoklch(32.87% 0.157 279.2)
XYZxyz(5.4885, 3.0534, 21.4149)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1E82 #75821E
analogous
#1E4382 #2B1E82 #5D1E82
triadic
#2B1E82 #822B1E #1E822B
tetradic
#2B1E82 #821E43 #75821E #1E825D
square
#2B1E82 #821E43 #75821E #1E825D
split-complementary
#2B1E82 #825D1E #43821E
monochromatic
#0A071F #1B1350 #2B1E82 #3B29B4 #5946D4

Accessibility & contrast

On white

13.04
#2B1E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2B1E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1E82
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1E82#FFFFFF#000000##FFFFFF
##2B1E821.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#002D80
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2b1e82;
/* rgb */ color: rgb(43, 30, 130);
/* oklch */ color: oklch(32.9% 0.157 279.2);
Tailwind
colors: {
  custom: {
    50: '#715ca7',
    500: '#2b1e82',
    950: '#000000',
  },
}
SCSS
$custom: #2b1e82;
$custom-light: #715ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1e82",
  "rgb": {
    "r": 43,
    "g": 30,
    "b": 130
  },
  "hsl": {
    "h": 247.8,
    "s": 62.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32872,
    "c": 0.15732,
    "h": 279.2
  },
  "luminance": 0.03054
}

Semantic roles & 50–950 ramp

primary
#2B1E82
secondary
#A7B547
accent
#E642D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1E82

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

Preview Lab → · Contrast checker → · Palette generator →

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