#2B1D81#2B1D81

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

Color values

HEX#2B1D81
RGBrgb(43, 29, 129)
HSLhsl(248, 63%, 31%)
HSVhsv(248, 78%, 51%)
CMYKcmyk(66.7%, 77.5%, 0%, 49.4%)
CIE-LABlab(19.95, 37.22, -53.67)
CIE-LCHlch(19.95, 65.31, 304.74°)
OKLaboklab(32.62% 0.0259 -0.1549)
OKLCHoklch(32.62% 0.157 279.5)
XYZxyz(5.3968, 2.9769, 21.0548)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1D81 #73811D
analogous
#1D4181 #2B1D81 #5D1D81
triadic
#2B1D81 #812B1D #1D812B
tetradic
#2B1D81 #811D41 #73811D #1D815D
square
#2B1D81 #811D41 #73811D #1D815D
split-complementary
#2B1D81 #815D1D #41811D
monochromatic
#0A071D #1A124F #2B1D81 #3C28B3 #5844D5

Accessibility & contrast

On white

13.16
#2B1D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1D81
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1D81#FFFFFF#000000##FFFFFF
##2B1D811.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1d81;
/* rgb */ color: rgb(43, 29, 129);
/* oklch */ color: oklch(32.6% 0.157 279.5);
Tailwind
colors: {
  custom: {
    50: '#715ba7',
    500: '#2b1d81',
    950: '#000000',
  },
}
SCSS
$custom: #2b1d81;
$custom-light: #715ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1d81",
  "rgb": {
    "r": 43,
    "g": 29,
    "b": 129
  },
  "hsl": {
    "h": 248.4,
    "s": 63.291,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32624,
    "c": 0.15708,
    "h": 279.5
  },
  "luminance": 0.02977
}

Semantic roles & 50–950 ramp

primary
#2B1D81
secondary
#A5B446
accent
#E641CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1D81

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

Preview Lab → · Contrast checker → · Palette generator →

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