#2B1D8E#2B1D8E

#2B1D8E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.173 H 277.5°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#2B1D8E
RGBrgb(43, 29, 142)
HSLhsl(247, 66%, 34%)
HSVhsv(247, 80%, 56%)
CMYKcmyk(69.7%, 79.6%, 0%, 44.3%)
CIE-LABlab(21.38, 41.43, -59.48)
CIE-LCHlch(21.38, 72.48, 304.86°)
OKLaboklab(34.05% 0.0225 -0.1719)
OKLCHoklch(34.05% 0.173 277.5)
XYZxyz(6.3165, 3.3448, 25.8987)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1D8E #808E1D
analogous
#1D478E #2B1D8E #631D8E
triadic
#2B1D8E #8E2B1D #1D8E2B
tetradic
#2B1D8E #8E1D47 #808E1D #1D8E63
square
#2B1D8E #8E1D47 #808E1D #1D8E63
split-complementary
#2B1D8E #8E631D #478E1D
monochromatic
#0C0828 #1C135B #2B1D8E #3A27C1 #5D4BDA

Accessibility & contrast

On white

12.58
#2B1D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2B1D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1D8E
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1D8E#FFFFFF#000000##FFFFFF
##2B1D8E1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#002E8C
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2b1d8e;
/* rgb */ color: rgb(43, 29, 142);
/* oklch */ color: oklch(34.0% 0.173 277.5);
Tailwind
colors: {
  custom: {
    50: '#745cb0',
    500: '#2b1d8e',
    950: '#000000',
  },
}
SCSS
$custom: #2b1d8e;
$custom-light: #745cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1d8e",
  "rgb": {
    "r": 43,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 247.434,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34047,
    "c": 0.17333,
    "h": 277.5
  },
  "luminance": 0.03345
}

Semantic roles & 50–950 ramp

primary
#2B1D8E
secondary
#AEBD4A
accent
#E93FD4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2B1D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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