#2B1A9F#2B1A9F

#2B1A9F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.196 H 275.6°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#2B1A9F
RGBrgb(43, 26, 159)
HSLhsl(248, 72%, 36%)
HSVhsv(248, 84%, 62%)
CMYKcmyk(73%, 83.6%, 0%, 37.6%)
CIE-LABlab(22.84, 48.18, -67.53)
CIE-LCHlch(22.84, 82.96, 305.51°)
OKLaboklab(35.64% 0.019 -0.1952)
OKLCHoklch(35.64% 0.196 275.6)
XYZxyz(7.6216, 3.7548, 33.1173)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1A9F #8E9F1A
analogous
#1A4C9F #2B1A9F #6E1A9F
triadic
#2B1A9F #9F2B1A #1A9F2B
tetradic
#2B1A9F #9F1A4C #8E9F1A #1A9F6E
square
#2B1A9F #9F1A4C #8E9F1A #1A9F6E
split-complementary
#2B1A9F #9F6E1A #4C9F1A
monochromatic
#0F0936 #1D116A #2B1A9F #3923D4 #6351E3

Accessibility & contrast

On white

11.99
#2B1A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2B1A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1A9F
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1A9F#FFFFFF#000000##FFFFFF
##2B1A9F1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA3
Deuteranopia (green-blind)
#00319D
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2b1a9f;
/* rgb */ color: rgb(43, 26, 159);
/* oklch */ color: oklch(35.6% 0.196 275.6);
Tailwind
colors: {
  custom: {
    50: '#785cbd',
    500: '#2b1a9f',
    950: '#000000',
  },
}
SCSS
$custom: #2b1a9f;
$custom-light: #785cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1a9f",
  "rgb": {
    "r": 43,
    "g": 26,
    "b": 159
  },
  "hsl": {
    "h": 247.669,
    "s": 71.892,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35643,
    "c": 0.19612,
    "h": 275.6
  },
  "luminance": 0.03756
}

Semantic roles & 50–950 ramp

primary
#2B1A9F
secondary
#B6C550
accent
#EF39D7
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2B1A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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