#2B3987#2B3987

#2B3987 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.1% C 0.131 H 271.1°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#2B3987
RGBrgb(43, 57, 135)
HSLhsl(231, 52%, 35%)
HSVhsv(231, 68%, 53%)
CMYKcmyk(68.1%, 57.8%, 0%, 47.1%)
CIE-LABlab(27.27, 21.40, -45.47)
CIE-LCHlch(27.27, 50.25, 295.20°)
OKLaboklab(38.12% 0.0026 -0.1308)
OKLCHoklch(38.12% 0.131 271.1)
XYZxyz(6.8311, 5.1885, 23.5585)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3987 #87792B
analogous
#2B6787 #2B3987 #4B2B87
triadic
#2B3987 #872B39 #39872B
tetradic
#2B3987 #872B67 #87792B #2B874B
square
#2B3987 #872B67 #87792B #2B874B
split-complementary
#2B3987 #874B2B #67872B
monochromatic
#0D122A #1C2559 #2B3987 #3A4DB5 #6071CC

Accessibility & contrast

On white

10.31
#2B3987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2B3987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3987
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3987#FFFFFF#000000##FFFFFF
##2B39871.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#003C85
Tritanopia (blue-blind)
#004C5A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2b3987;
/* rgb */ color: rgb(43, 57, 135);
/* oklch */ color: oklch(38.1% 0.131 271.1);
Tailwind
colors: {
  custom: {
    50: '#706fab',
    500: '#2b3987',
    950: '#000000',
  },
}
SCSS
$custom: #2b3987;
$custom-light: #706fab;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3987",
  "rgb": {
    "r": 43,
    "g": 57,
    "b": 135
  },
  "hsl": {
    "h": 230.87,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.3812,
    "c": 0.13084,
    "h": 271.1
  },
  "luminance": 0.05189
}

Semantic roles & 50–950 ramp

primary
#2B3987
secondary
#B2A55B
accent
#C54DDB
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2B3987

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

Preview Lab → · Contrast checker → · Palette generator →

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