#2B1987#2B1987

#2B1987 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.168 H 279.1°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#2B1987
RGBrgb(43, 25, 135)
HSLhsl(250, 69%, 31%)
HSVhsv(250, 81%, 53%)
CMYKcmyk(68.1%, 81.5%, 0%, 47.1%)
CIE-LABlab(19.87, 41.26, -57.58)
CIE-LCHlch(19.87, 70.84, 305.63°)
OKLaboklab(32.77% 0.0266 -0.1663)
OKLCHoklch(32.77% 0.168 279.1)
XYZxyz(5.7157, 2.9576, 23.1866)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1987 #758719
analogous
#193E87 #2B1987 #621987
triadic
#2B1987 #872B19 #19872B
tetradic
#2B1987 #87193E #758719 #198762
square
#2B1987 #87193E #758719 #198762
split-complementary
#2B1987 #876219 #3E8719
monochromatic
#0A0620 #1B0F53 #2B1987 #3B23BB #593FDB

Accessibility & contrast

On white

13.19
#2B1987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2B1987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1987
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1987#FFFFFF#000000##FFFFFF
##2B19871.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348A
Deuteranopia (green-blind)
#002C85
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2b1987;
/* rgb */ color: rgb(43, 25, 135);
/* oklch */ color: oklch(32.8% 0.168 279.1);
Tailwind
colors: {
  custom: {
    50: '#7359ab',
    500: '#2b1987',
    950: '#000000',
  },
}
SCSS
$custom: #2b1987;
$custom-light: #7359ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1987",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 249.818,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32767,
    "c": 0.16841,
    "h": 279.1
  },
  "luminance": 0.02958
}

Semantic roles & 50–950 ramp

primary
#2B1987
secondary
#A7BA41
accent
#EC3CCF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1987

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

Preview Lab → · Contrast checker → · Palette generator →

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