#2B1C8B#2B1C8B

#2B1C8B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.6% C 0.171 H 278.0°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#2B1C8B
RGBrgb(43, 28, 139)
HSLhsl(248, 66%, 33%)
HSVhsv(248, 80%, 55%)
CMYKcmyk(69.1%, 79.9%, 0%, 45.5%)
CIE-LABlab(20.86, 40.99, -58.46)
CIE-LCHlch(20.86, 71.40, 305.04°)
OKLaboklab(33.59% 0.0239 -0.1689)
OKLCHoklch(33.59% 0.171 278)
XYZxyz(6.0702, 3.2077, 24.7203)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1C8B #7C8B1C
analogous
#1C458B #2B1C8B #621C8B
triadic
#2B1C8B #8B2B1C #1C8B2B
tetradic
#2B1C8B #8B1C45 #7C8B1C #1C8B62
square
#2B1C8B #8B1C45 #7C8B1C #1C8B62
split-complementary
#2B1C8B #8B621C #458B1C
monochromatic
#0B0725 #1B1258 #2B1C8B #3B26BE #5B47DA

Accessibility & contrast

On white

12.79
#2B1C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2B1C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1C8B
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1C8B#FFFFFF#000000##FFFFFF
##2B1C8B1.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002E89
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b1c8b;
/* rgb */ color: rgb(43, 28, 139);
/* oklch */ color: oklch(33.6% 0.171 278.0);
Tailwind
colors: {
  custom: {
    50: '#735bae',
    500: '#2b1c8b',
    950: '#000000',
  },
}
SCSS
$custom: #2b1c8b;
$custom-light: #735bae;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1c8b",
  "rgb": {
    "r": 43,
    "g": 28,
    "b": 139
  },
  "hsl": {
    "h": 248.108,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33586,
    "c": 0.17057,
    "h": 278
  },
  "luminance": 0.03208
}

Semantic roles & 50–950 ramp

primary
#2B1C8B
secondary
#ACBC47
accent
#E93ED2
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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