#2B1B9F#2B1B9F

#2B1B9F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.8% C 0.195 H 275.5°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#2B1B9F
RGBrgb(43, 27, 159)
HSLhsl(247, 71%, 36%)
HSVhsv(247, 83%, 62%)
CMYKcmyk(73%, 83%, 0%, 37.6%)
CIE-LABlab(23.00, 47.73, -67.27)
CIE-LCHlch(23.00, 82.48, 305.35°)
OKLaboklab(35.75% 0.0187 -0.1945)
OKLCHoklch(35.75% 0.195 275.5)
XYZxyz(7.6441, 3.7999, 33.1248)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B9F #8F9F1B
analogous
#1B4D9F #2B1B9F #6D1B9F
triadic
#2B1B9F #9F2B1B #1B9F2B
tetradic
#2B1B9F #9F1B4D #8F9F1B #1B9F6D
square
#2B1B9F #9F1B4D #8F9F1B #1B9F6D
split-complementary
#2B1B9F #9F6D1B #4D9F1B
monochromatic
#0F0936 #1D126B #2B1B9F #3924D3 #6453E2

Accessibility & contrast

On white

11.93
#2B1B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2B1B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1B9F
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B9F#FFFFFF#000000##FFFFFF
##2B1B9F1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1b9f;
/* rgb */ color: rgb(43, 27, 159);
/* oklch */ color: oklch(35.8% 0.195 275.5);
Tailwind
colors: {
  custom: {
    50: '#785cbd',
    500: '#2b1b9f',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b9f;
$custom-light: #785cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b9f",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 159
  },
  "hsl": {
    "h": 247.273,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.3575,
    "c": 0.19536,
    "h": 275.5
  },
  "luminance": 0.03801
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B1B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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