#2B1A8F#2B1A8F

#2B1A8F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.8% C 0.177 H 277.7°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#2B1A8F
RGBrgb(43, 26, 143)
HSLhsl(249, 69%, 33%)
HSVhsv(249, 82%, 56%)
CMYKcmyk(69.9%, 81.8%, 0%, 43.9%)
CIE-LABlab(20.96, 43.27, -60.79)
CIE-LCHlch(20.96, 74.61, 305.44°)
OKLaboklab(33.79% 0.0237 -0.1756)
OKLCHoklch(33.79% 0.177 277.7)
XYZxyz(6.3220, 3.2350, 26.2725)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1A8F #7E8F1A
analogous
#1A438F #2B1A8F #651A8F
triadic
#2B1A8F #8F2B1A #1A8F2B
tetradic
#2B1A8F #8F1A43 #7E8F1A #1A8F65
square
#2B1A8F #8F1A43 #7E8F1A #1A8F65
split-complementary
#2B1A8F #8F651A #438F1A
monochromatic
#0C0727 #1B115B #2B1A8F #3B23C3 #5C46DD

Accessibility & contrast

On white

12.75
#2B1A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2B1A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1A8F
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1A8F#FFFFFF#000000##FFFFFF
##2B1A8F1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002D8D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b1a8f;
/* rgb */ color: rgb(43, 26, 143);
/* oklch */ color: oklch(33.8% 0.177 277.7);
Tailwind
colors: {
  custom: {
    50: '#745ab1',
    500: '#2b1a8f',
    950: '#000000',
  },
}
SCSS
$custom: #2b1a8f;
$custom-light: #745ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1a8f",
  "rgb": {
    "r": 43,
    "g": 26,
    "b": 143
  },
  "hsl": {
    "h": 248.718,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33793,
    "c": 0.17722,
    "h": 277.7
  },
  "luminance": 0.03236
}

Semantic roles & 50–950 ramp

primary
#2B1A8F
secondary
#ADBF46
accent
#EC3CD2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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