#2B1B9E#2B1B9E

#2B1B9E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.194 H 275.6°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#2B1B9E
RGBrgb(43, 27, 158)
HSLhsl(247, 71%, 36%)
HSVhsv(247, 83%, 62%)
CMYKcmyk(72.8%, 82.9%, 0%, 38%)
CIE-LABlab(22.88, 47.42, -66.86)
CIE-LCHlch(22.88, 81.97, 305.35°)
OKLaboklab(35.63% 0.0189 -0.1933)
OKLCHoklch(35.63% 0.194 275.6)
XYZxyz(7.5577, 3.7653, 32.6696)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B9E #8E9E1B
analogous
#1B4D9E #2B1B9E #6D1B9E
triadic
#2B1B9E #9E2B1B #1B9E2B
tetradic
#2B1B9E #9E1B4D #8E9E1B #1B9E6D
square
#2B1B9E #9E1B4D #8E9E1B #1B9E6D
split-complementary
#2B1B9E #9E6D1B #4D9E1B
monochromatic
#0F0935 #1D126A #2B1B9E #3924D2 #6352E1

Accessibility & contrast

On white

11.98
#2B1B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2B1B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1B9E
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B9E#FFFFFF#000000##FFFFFF
##2B1B9E1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA2
Deuteranopia (green-blind)
#00319C
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2b1b9e;
/* rgb */ color: rgb(43, 27, 158);
/* oklch */ color: oklch(35.6% 0.194 275.6);
Tailwind
colors: {
  custom: {
    50: '#785cbc',
    500: '#2b1b9e',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b9e;
$custom-light: #785cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b9e",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 247.328,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35633,
    "c": 0.1942,
    "h": 275.6
  },
  "luminance": 0.03766
}

Semantic roles & 50–950 ramp

primary
#2B1B9E
secondary
#B6C451
accent
#EE3AD8
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2B1B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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