#2B1B8A#2B1B8A

#2B1B8A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.3% C 0.170 H 278.3°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#2B1B8A
RGBrgb(43, 27, 138)
HSLhsl(249, 67%, 32%)
HSVhsv(249, 80%, 54%)
CMYKcmyk(68.8%, 80.4%, 0%, 45.9%)
CIE-LABlab(20.56, 41.19, -58.32)
CIE-LCHlch(20.56, 71.40, 305.24°)
OKLaboklab(33.35% 0.0247 -0.1685)
OKLCHoklch(33.35% 0.17 278.3)
XYZxyz(5.9742, 3.1319, 24.3295)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B8A #7A8A1B
analogous
#1B428A #2B1B8A #631B8A
triadic
#2B1B8A #8A2B1B #1B8A2B
tetradic
#2B1B8A #8A1B42 #7A8A1B #1B8A63
square
#2B1B8A #8A1B42 #7A8A1B #1B8A63
split-complementary
#2B1B8A #8A631B #428A1B
monochromatic
#0B0724 #1B1157 #2B1B8A #3B25BD #5A45DB

Accessibility & contrast

On white

12.91
#2B1B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2B1B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1B8A
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B8A#FFFFFF#000000##FFFFFF
##2B1B8A1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368D
Deuteranopia (green-blind)
#002D88
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b1b8a;
/* rgb */ color: rgb(43, 27, 138);
/* oklch */ color: oklch(33.3% 0.170 278.3);
Tailwind
colors: {
  custom: {
    50: '#735bad',
    500: '#2b1b8a',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b8a;
$custom-light: #735bad;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b8a",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 248.649,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33349,
    "c": 0.17026,
    "h": 278.3
  },
  "luminance": 0.03132
}

Semantic roles & 50–950 ramp

primary
#2B1B8A
secondary
#ABBC45
accent
#EA3ED1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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