#2B1A8A#2B1A8A

#2B1A8A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.2% C 0.171 H 278.5°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#2B1A8A
RGBrgb(43, 26, 138)
HSLhsl(249, 68%, 32%)
HSVhsv(249, 81%, 54%)
CMYKcmyk(68.8%, 81.2%, 0%, 45.9%)
CIE-LABlab(20.39, 41.70, -58.61)
CIE-LCHlch(20.39, 71.93, 305.43°)
OKLaboklab(33.23% 0.0252 -0.1693)
OKLCHoklch(33.23% 0.171 278.5)
XYZxyz(5.9516, 3.0868, 24.3220)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1A8A #798A1A
analogous
#1A418A #2B1A8A #631A8A
triadic
#2B1A8A #8A2B1A #1A8A2B
tetradic
#2B1A8A #8A1A41 #798A1A #1A8A63
square
#2B1A8A #8A1A41 #798A1A #1A8A63
split-complementary
#2B1A8A #8A631A #418A1A
monochromatic
#0B0723 #1B1057 #2B1A8A #3B24BD #5A43DC

Accessibility & contrast

On white

12.98
#2B1A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2B1A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1A8A
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1A8A#FFFFFF#000000##FFFFFF
##2B1A8A1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1a8a;
/* rgb */ color: rgb(43, 26, 138);
/* oklch */ color: oklch(33.2% 0.171 278.5);
Tailwind
colors: {
  custom: {
    50: '#735aad',
    500: '#2b1a8a',
    950: '#000000',
  },
}
SCSS
$custom: #2b1a8a;
$custom-light: #735aad;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1a8a",
  "rgb": {
    "r": 43,
    "g": 26,
    "b": 138
  },
  "hsl": {
    "h": 249.107,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33226,
    "c": 0.17117,
    "h": 278.5
  },
  "luminance": 0.03087
}

Semantic roles & 50–950 ramp

primary
#2B1A8A
secondary
#AABD43
accent
#EB3DD1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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