#2B1899#2B1899

#2B1899 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.7% C 0.191 H 276.5°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#2B1899
RGBrgb(43, 24, 153)
HSLhsl(249, 73%, 35%)
HSVhsv(249, 84%, 60%)
CMYKcmyk(71.9%, 84.3%, 0%, 40%)
CIE-LABlab(21.82, 47.26, -65.55)
CIE-LCHlch(21.82, 80.81, 305.79°)
OKLaboklab(34.73% 0.0215 -0.1894)
OKLCHoklch(34.73% 0.191 276.5)
XYZxyz(7.0708, 3.4661, 30.4272)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1899 #869918
analogous
#184699 #2B1899 #6B1899
triadic
#2B1899 #992B18 #18992B
tetradic
#2B1899 #991846 #869918 #18996B
square
#2B1899 #991846 #869918 #18996B
split-complementary
#2B1899 #996B18 #469918
monochromatic
#0D072F #1C1064 #2B1899 #3A20CE #6049E2

Accessibility & contrast

On white

12.40
#2B1899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2B1899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1899
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1899#FFFFFF#000000##FFFFFF
##2B18991.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00399C
Deuteranopia (green-blind)
#002F97
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2b1899;
/* rgb */ color: rgb(43, 24, 153);
/* oklch */ color: oklch(34.7% 0.191 276.5);
Tailwind
colors: {
  custom: {
    50: '#775ab8',
    500: '#2b1899',
    950: '#000000',
  },
}
SCSS
$custom: #2b1899;
$custom-light: #775ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1899",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 153
  },
  "hsl": {
    "h": 248.837,
    "s": 72.881,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3473,
    "c": 0.19064,
    "h": 276.5
  },
  "luminance": 0.03467
}

Semantic roles & 50–950 ramp

primary
#2B1899
secondary
#B2C449
accent
#F038D5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2B1899

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

Preview Lab → · Contrast checker → · Palette generator →

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