#2B1A9D#2B1A9D

#2B1A9D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.4% C 0.194 H 275.8°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#2B1A9D
RGBrgb(43, 26, 157)
HSLhsl(248, 72%, 36%)
HSVhsv(248, 83%, 62%)
CMYKcmyk(72.6%, 83.4%, 0%, 38.4%)
CIE-LABlab(22.61, 47.58, -66.70)
CIE-LCHlch(22.61, 81.93, 305.50°)
OKLaboklab(35.41% 0.0196 -0.1928)
OKLCHoklch(35.41% 0.194 275.8)
XYZxyz(7.4495, 3.6860, 32.2106)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1A9D #8C9D1A
analogous
#1A4A9D #2B1A9D #6C1A9D
triadic
#2B1A9D #9D2B1A #1A9D2B
tetradic
#2B1A9D #9D1A4A #8C9D1A #1A9D6C
square
#2B1A9D #9D1A4A #8C9D1A #1A9D6C
split-complementary
#2B1A9D #9D6C1A #4A9D1A
monochromatic
#0E0934 #1D1168 #2B1A9D #3923D2 #624FE2

Accessibility & contrast

On white

12.09
#2B1A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1A9D
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1A9D#FFFFFF#000000##FFFFFF
##2B1A9D1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA1
Deuteranopia (green-blind)
#00309B
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2b1a9d;
/* rgb */ color: rgb(43, 26, 157);
/* oklch */ color: oklch(35.4% 0.194 275.8);
Tailwind
colors: {
  custom: {
    50: '#785bbb',
    500: '#2b1a9d',
    950: '#000000',
  },
}
SCSS
$custom: #2b1a9d;
$custom-light: #785bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1a9d",
  "rgb": {
    "r": 43,
    "g": 26,
    "b": 157
  },
  "hsl": {
    "h": 247.786,
    "s": 71.585,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35409,
    "c": 0.19379,
    "h": 275.8
  },
  "luminance": 0.03687
}

Semantic roles & 50–950 ramp

primary
#2B1A9D
secondary
#B5C44E
accent
#EE39D7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2B1A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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