#2B1B7D#2B1B7D

#2B1B7D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.154 H 280.6°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#2B1B7D
RGBrgb(43, 27, 125)
HSLhsl(250, 64%, 30%)
HSVhsv(250, 78%, 49%)
CMYKcmyk(65.6%, 78.4%, 0%, 51%)
CIE-LABlab(19.13, 37.02, -52.48)
CIE-LCHlch(19.13, 64.23, 305.20°)
OKLaboklab(31.92% 0.0283 -0.1514)
OKLCHoklch(31.92% 0.154 280.6)
XYZxyz(5.0887, 2.7777, 19.6661)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B7D #6D7D1B
analogous
#1B3C7D #2B1B7D #5C1B7D
triadic
#2B1B7D #7D2B1B #1B7D2B
tetradic
#2B1B7D #7D1B3C #6D7D1B #1B7D5C
square
#2B1B7D #7D1B3C #6D7D1B #1B7D5C
split-complementary
#2B1B7D #7D5C1B #3C7D1B
monochromatic
#090519 #1A104B #2B1B7D #3C26AF #563DD5

Accessibility & contrast

On white

13.50
#2B1B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2B1B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1B7D
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B7D#FFFFFF#000000##FFFFFF
##2B1B7D1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2b1b7d;
/* rgb */ color: rgb(43, 27, 125);
/* oklch */ color: oklch(31.9% 0.154 280.6);
Tailwind
colors: {
  custom: {
    50: '#705aa4',
    500: '#2b1b7d',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b7d;
$custom-light: #705aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b7d",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 249.796,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31918,
    "c": 0.15407,
    "h": 280.6
  },
  "luminance": 0.02778
}

Semantic roles & 50–950 ramp

primary
#2B1B7D
secondary
#9FB143
accent
#E740CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B1B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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