#2B1A9E#2B1A9E

#2B1A9E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.5% C 0.195 H 275.7°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#2B1A9E
RGBrgb(43, 26, 158)
HSLhsl(248, 72%, 36%)
HSVhsv(248, 84%, 62%)
CMYKcmyk(72.8%, 83.5%, 0%, 38%)
CIE-LABlab(22.72, 47.88, -67.12)
CIE-LCHlch(22.72, 82.44, 305.50°)
OKLaboklab(35.53% 0.0193 -0.194)
OKLCHoklch(35.53% 0.195 275.7)
XYZxyz(7.5352, 3.7203, 32.6621)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1A9E #8D9E1A
analogous
#1A4B9E #2B1A9E #6D1A9E
triadic
#2B1A9E #9E2B1A #1A9E2B
tetradic
#2B1A9E #9E1A4B #8D9E1A #1A9E6D
square
#2B1A9E #9E1A4B #8D9E1A #1A9E6D
split-complementary
#2B1A9E #9E6D1A #4B9E1A
monochromatic
#0E0935 #1D1169 #2B1A9E #3923D3 #6350E2

Accessibility & contrast

On white

12.04
#2B1A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2B1A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1A9E
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1A9E#FFFFFF#000000##FFFFFF
##2B1A9E1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA2
Deuteranopia (green-blind)
#00309C
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2b1a9e;
/* rgb */ color: rgb(43, 26, 158);
/* oklch */ color: oklch(35.5% 0.195 275.7);
Tailwind
colors: {
  custom: {
    50: '#785cbc',
    500: '#2b1a9e',
    950: '#000000',
  },
}
SCSS
$custom: #2b1a9e;
$custom-light: #785cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1a9e",
  "rgb": {
    "r": 43,
    "g": 26,
    "b": 158
  },
  "hsl": {
    "h": 247.727,
    "s": 71.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35526,
    "c": 0.19496,
    "h": 275.7
  },
  "luminance": 0.03721
}

Semantic roles & 50–950 ramp

primary
#2B1A9E
secondary
#B6C54F
accent
#EE39D7
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2B1A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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