#2B3887#2B3887

#2B3887 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.9% C 0.132 H 271.5°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#2B3887
RGBrgb(43, 56, 135)
HSLhsl(232, 52%, 35%)
HSVhsv(232, 68%, 53%)
CMYKcmyk(68.1%, 58.5%, 0%, 47.1%)
CIE-LABlab(26.99, 22.08, -45.92)
CIE-LCHlch(26.99, 50.95, 295.68°)
OKLaboklab(37.92% 0.0036 -0.1321)
OKLCHoklch(37.92% 0.132 271.5)
XYZxyz(6.7821, 5.0906, 23.5421)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3887 #877A2B
analogous
#2B6687 #2B3887 #4C2B87
triadic
#2B3887 #872B38 #38872B
tetradic
#2B3887 #872B66 #877A2B #2B874C
square
#2B3887 #872B66 #877A2B #2B874C
split-complementary
#2B3887 #874C2B #66872B
monochromatic
#0D112A #1C2559 #2B3887 #3A4BB5 #606FCC

Accessibility & contrast

On white

10.41
#2B3887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2B3887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3887
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3887#FFFFFF#000000##FFFFFF
##2B38871.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b3887;
/* rgb */ color: rgb(43, 56, 135);
/* oklch */ color: oklch(37.9% 0.132 271.5);
Tailwind
colors: {
  custom: {
    50: '#706eab',
    500: '#2b3887',
    950: '#000000',
  },
}
SCSS
$custom: #2b3887;
$custom-light: #706eab;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3887",
  "rgb": {
    "r": 43,
    "g": 56,
    "b": 135
  },
  "hsl": {
    "h": 231.522,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.37916,
    "c": 0.13218,
    "h": 271.5
  },
  "luminance": 0.05091
}

Semantic roles & 50–950 ramp

primary
#2B3887
secondary
#B2A65B
accent
#C74DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2B3887

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

Preview Lab → · Contrast checker → · Palette generator →

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