#2B1C80#2B1C80

#2B1C80 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.157 H 279.9°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#2B1C80
RGBrgb(43, 28, 128)
HSLhsl(249, 64%, 31%)
HSVhsv(249, 78%, 50%)
CMYKcmyk(66.4%, 78.1%, 0%, 49.8%)
CIE-LABlab(19.65, 37.45, -53.54)
CIE-LCHlch(19.65, 65.33, 304.97°)
OKLaboklab(32.38% 0.0268 -0.1545)
OKLCHoklch(32.38% 0.157 279.9)
XYZxyz(5.3066, 2.9022, 20.6984)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1C80 #71801C
analogous
#1C3F80 #2B1C80 #5D1C80
triadic
#2B1C80 #802B1C #1C802B
tetradic
#2B1C80 #801C3F #71801C #1C805D
square
#2B1C80 #801C3F #71801C #1C805D
split-complementary
#2B1C80 #805D1C #3F801C
monochromatic
#09061C #1A114E #2B1C80 #3C27B2 #5741D5

Accessibility & contrast

On white

13.29
#2B1C80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1C80
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1C80#FFFFFF#000000##FFFFFF
##2B1C801.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002C7E
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2b1c80;
/* rgb */ color: rgb(43, 28, 128);
/* oklch */ color: oklch(32.4% 0.157 279.9);
Tailwind
colors: {
  custom: {
    50: '#715ba6',
    500: '#2b1c80',
    950: '#000000',
  },
}
SCSS
$custom: #2b1c80;
$custom-light: #715ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1c80",
  "rgb": {
    "r": 43,
    "g": 28,
    "b": 128
  },
  "hsl": {
    "h": 249,
    "s": 64.103,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32379,
    "c": 0.15684,
    "h": 279.9
  },
  "luminance": 0.02903
}

Semantic roles & 50–950 ramp

primary
#2B1C80
secondary
#A3B344
accent
#E741CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2B1C80

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

Preview Lab → · Contrast checker → · Palette generator →

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