#2B1D82#2B1D82

#2B1D82 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.158 H 279.3°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#2B1D82
RGBrgb(43, 29, 130)
HSLhsl(248, 64%, 31%)
HSVhsv(248, 78%, 51%)
CMYKcmyk(66.9%, 77.7%, 0%, 49%)
CIE-LABlab(20.06, 37.54, -54.13)
CIE-LCHlch(20.06, 65.87, 304.75°)
OKLaboklab(32.73% 0.0257 -0.1563)
OKLCHoklch(32.73% 0.158 279.3)
XYZxyz(5.4636, 3.0036, 21.4066)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1D82 #74821D
analogous
#1D4182 #2B1D82 #5D1D82
triadic
#2B1D82 #822B1D #1D822B
tetradic
#2B1D82 #821D41 #74821D #1D825D
square
#2B1D82 #821D41 #74821D #1D825D
split-complementary
#2B1D82 #825D1D #41821D
monochromatic
#0A071E #1A1250 #2B1D82 #3C28B4 #5844D5

Accessibility & contrast

On white

13.12
#2B1D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2B1D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1D82
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1D82#FFFFFF#000000##FFFFFF
##2B1D821.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003485
Deuteranopia (green-blind)
#002C80
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2b1d82;
/* rgb */ color: rgb(43, 29, 130);
/* oklch */ color: oklch(32.7% 0.158 279.3);
Tailwind
colors: {
  custom: {
    50: '#715ba7',
    500: '#2b1d82',
    950: '#000000',
  },
}
SCSS
$custom: #2b1d82;
$custom-light: #715ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1d82",
  "rgb": {
    "r": 43,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 248.317,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32732,
    "c": 0.15836,
    "h": 279.3
  },
  "luminance": 0.03004
}

Semantic roles & 50–950 ramp

primary
#2B1D82
secondary
#A6B546
accent
#E741D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1D82

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

Preview Lab → · Contrast checker → · Palette generator →

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