#2B1B9D#2B1B9D

#2B1B9D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.5% C 0.193 H 275.7°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#2B1B9D
RGBrgb(43, 27, 157)
HSLhsl(247, 71%, 36%)
HSVhsv(247, 83%, 62%)
CMYKcmyk(72.6%, 82.8%, 0%, 38.4%)
CIE-LABlab(22.76, 47.12, -66.44)
CIE-LCHlch(22.76, 81.45, 305.34°)
OKLaboklab(35.52% 0.0192 -0.1921)
OKLCHoklch(35.52% 0.193 275.7)
XYZxyz(7.4720, 3.7311, 32.2181)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B9D #8D9D1B
analogous
#1B4C9D #2B1B9D #6C1B9D
triadic
#2B1B9D #9D2B1B #1B9D2B
tetradic
#2B1B9D #9D1B4C #8D9D1B #1B9D6C
square
#2B1B9D #9D1B4C #8D9D1B #1B9D6C
split-complementary
#2B1B9D #9D6C1B #4C9D1B
monochromatic
#0E0935 #1D1269 #2B1B9D #3924D1 #6351E1

Accessibility & contrast

On white

12.02
#2B1B9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1B9D
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B9D#FFFFFF#000000##FFFFFF
##2B1B9D1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA1
Deuteranopia (green-blind)
#00309B
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2b1b9d;
/* rgb */ color: rgb(43, 27, 157);
/* oklch */ color: oklch(35.5% 0.193 275.7);
Tailwind
colors: {
  custom: {
    50: '#785cbb',
    500: '#2b1b9d',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b9d;
$custom-light: #785cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b9d",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 157
  },
  "hsl": {
    "h": 247.385,
    "s": 70.652,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35517,
    "c": 0.19303,
    "h": 275.7
  },
  "luminance": 0.03732
}

Semantic roles & 50–950 ramp

primary
#2B1B9D
secondary
#B6C450
accent
#ED3AD7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2B1B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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