#2B4787#2B4787

#2B4787 is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.2% C 0.112 H 264.3°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#2B4787
RGBrgb(43, 71, 135)
HSLhsl(222, 52%, 35%)
HSVhsv(222, 68%, 53%)
CMYKcmyk(68.1%, 47.4%, 0%, 47.1%)
CIE-LABlab(31.27, 11.84, -39.01)
CIE-LCHlch(31.27, 40.76, 286.88°)
OKLaboklab(41.16% -0.0112 -0.1116)
OKLCHoklch(41.16% 0.112 264.3)
XYZxyz(7.6211, 6.7686, 23.8218)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4787 #876B2B
analogous
#2B7587 #2B4787 #3D2B87
triadic
#2B4787 #872B47 #47872B
tetradic
#2B4787 #872B75 #876B2B #2B873D
square
#2B4787 #872B75 #876B2B #2B873D
split-complementary
#2B4787 #873D2B #75872B
monochromatic
#0D162A #1C2F59 #2B4787 #3A5FB5 #6081CC

Accessibility & contrast

On white

8.92
#2B4787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2B4787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4787
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4787#FFFFFF#000000##FFFFFF
##2B47871.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274E89
Deuteranopia (green-blind)
#164686
Tritanopia (blue-blind)
#005660
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2b4787;
/* rgb */ color: rgb(43, 71, 135);
/* oklch */ color: oklch(41.2% 0.112 264.3);
Tailwind
colors: {
  custom: {
    50: '#6f79aa',
    500: '#2b4787',
    950: '#000000',
  },
}
SCSS
$custom: #2b4787;
$custom-light: #6f79aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4787",
  "rgb": {
    "r": 43,
    "g": 71,
    "b": 135
  },
  "hsl": {
    "h": 221.739,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.41159,
    "c": 0.11214,
    "h": 264.3
  },
  "luminance": 0.06769
}

Semantic roles & 50–950 ramp

primary
#2B4787
secondary
#B2985B
accent
#B04DDB
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2B4787

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

Preview Lab → · Contrast checker → · Palette generator →

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