#2B1C82#2B1C82

#2B1C82 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.159 H 279.5°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#2B1C82
RGBrgb(43, 28, 130)
HSLhsl(249, 65%, 31%)
HSVhsv(249, 78%, 51%)
CMYKcmyk(66.9%, 78.5%, 0%, 49%)
CIE-LABlab(19.86, 38.10, -54.44)
CIE-LCHlch(19.86, 66.45, 304.98°)
OKLaboklab(32.6% 0.0263 -0.1572)
OKLCHoklch(32.6% 0.159 279.5)
XYZxyz(5.4395, 2.9554, 21.3986)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1C82 #73821C
analogous
#1C4082 #2B1C82 #5E1C82
triadic
#2B1C82 #822B1C #1C822B
tetradic
#2B1C82 #821C40 #73821C #1C825E
square
#2B1C82 #821C40 #73821C #1C825E
split-complementary
#2B1C82 #825E1C #40821C
monochromatic
#0A061D #1A1150 #2B1C82 #3C27B4 #5842D6

Accessibility & contrast

On white

13.20
#2B1C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2B1C82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1C82
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1C82#FFFFFF#000000##FFFFFF
##2B1C821.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.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: #2b1c82;
/* rgb */ color: rgb(43, 28, 130);
/* oklch */ color: oklch(32.6% 0.159 279.5);
Tailwind
colors: {
  custom: {
    50: '#715ba7',
    500: '#2b1c82',
    950: '#000000',
  },
}
SCSS
$custom: #2b1c82;
$custom-light: #715ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1c82",
  "rgb": {
    "r": 43,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 248.824,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32596,
    "c": 0.15938,
    "h": 279.5
  },
  "luminance": 0.02956
}

Semantic roles & 50–950 ramp

primary
#2B1C82
secondary
#A5B544
accent
#E840CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1C82

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

Preview Lab → · Contrast checker → · Palette generator →

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