#2B1C8D#2B1C8D

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

Color values

HEX#2B1C8D
RGBrgb(43, 28, 141)
HSLhsl(248, 67%, 33%)
HSVhsv(248, 80%, 55%)
CMYKcmyk(69.5%, 80.1%, 0%, 44.7%)
CIE-LABlab(21.08, 41.63, -59.34)
CIE-LCHlch(21.08, 72.49, 305.05°)
OKLaboklab(33.81% 0.0233 -0.1714)
OKLCHoklch(33.81% 0.173 277.7)
XYZxyz(6.2177, 3.2666, 25.4970)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1C8D #7E8D1C
analogous
#1C458D #2B1C8D #641C8D
triadic
#2B1C8D #8D2B1C #1C8D2B
tetradic
#2B1C8D #8D1C45 #7E8D1C #1C8D64
square
#2B1C8D #8D1C45 #7E8D1C #1C8D64
split-complementary
#2B1C8D #8D641C #458D1C
monochromatic
#0C0827 #1B125A #2B1C8D #3B26C0 #5C49DB

Accessibility & contrast

On white

12.70
#2B1C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1C8D
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1C8D#FFFFFF#000000##FFFFFF
##2B1C8D1.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#002E8B
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2b1c8d;
/* rgb */ color: rgb(43, 28, 141);
/* oklch */ color: oklch(33.8% 0.173 277.7);
Tailwind
colors: {
  custom: {
    50: '#745bb0',
    500: '#2b1c8d',
    950: '#000000',
  },
}
SCSS
$custom: #2b1c8d;
$custom-light: #745bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1c8d",
  "rgb": {
    "r": 43,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 247.965,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33809,
    "c": 0.17302,
    "h": 277.7
  },
  "luminance": 0.03267
}

Semantic roles & 50–950 ramp

primary
#2B1C8D
secondary
#ADBD48
accent
#EA3ED3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2B1C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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