#2B1D80#2B1D80

#2B1D80 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.156 H 279.7°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#2B1D80
RGBrgb(43, 29, 128)
HSLhsl(248, 63%, 31%)
HSVhsv(248, 77%, 50%)
CMYKcmyk(66.4%, 77.3%, 0%, 49.8%)
CIE-LABlab(19.84, 36.89, -53.21)
CIE-LCHlch(19.84, 64.75, 304.73°)
OKLaboklab(32.52% 0.0262 -0.1536)
OKLCHoklch(32.52% 0.156 279.7)
XYZxyz(5.3307, 2.9504, 20.7065)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1D80 #72801D
analogous
#1D4080 #2B1D80 #5C1D80
triadic
#2B1D80 #802B1D #1D802B
tetradic
#2B1D80 #801D40 #72801D #1D805C
square
#2B1D80 #801D40 #72801D #1D805C
split-complementary
#2B1D80 #805C1D #40801D
monochromatic
#09061C #1A124E #2B1D80 #3C28B2 #5843D4

Accessibility & contrast

On white

13.21
#2B1D80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1D80
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1D80#FFFFFF#000000##FFFFFF
##2B1D801.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1d80;
/* rgb */ color: rgb(43, 29, 128);
/* oklch */ color: oklch(32.5% 0.156 279.7);
Tailwind
colors: {
  custom: {
    50: '#715ba6',
    500: '#2b1d80',
    950: '#000000',
  },
}
SCSS
$custom: #2b1d80;
$custom-light: #715ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1d80",
  "rgb": {
    "r": 43,
    "g": 29,
    "b": 128
  },
  "hsl": {
    "h": 248.485,
    "s": 63.057,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32517,
    "c": 0.15582,
    "h": 279.7
  },
  "luminance": 0.02951
}

Semantic roles & 50–950 ramp

primary
#2B1D80
secondary
#A4B345
accent
#E642CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2B1D80

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

Preview Lab → · Contrast checker → · Palette generator →

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