#2B4E87#2B4E87

#2B4E87 is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.8% C 0.103 H 259.7°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#2B4E87
RGBrgb(43, 78, 135)
HSLhsl(217, 52%, 35%)
HSVhsv(217, 68%, 53%)
CMYKcmyk(68.1%, 42.2%, 0%, 47.1%)
CIE-LABlab(33.37, 7.15, -35.65)
CIE-LCHlch(33.37, 36.36, 281.34°)
OKLaboklab(42.78% -0.0185 -0.1016)
OKLCHoklch(42.78% 0.103 259.7)
XYZxyz(8.0923, 7.7108, 23.9788)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4E87 #87642B
analogous
#2B7C87 #2B4E87 #362B87
triadic
#2B4E87 #872B4E #4E872B
tetradic
#2B4E87 #872B7C #87642B #2B8736
square
#2B4E87 #872B7C #87642B #2B8736
split-complementary
#2B4E87 #87362B #7C872B
monochromatic
#0D182A #1C3359 #2B4E87 #3A69B5 #6089CC

Accessibility & contrast

On white

8.26
#2B4E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2B4E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4E87
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4E87#FFFFFF#000000##FFFFFF
##2B4E871.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345389
Deuteranopia (green-blind)
#264B86
Tritanopia (blue-blind)
#005B64
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2b4e87;
/* rgb */ color: rgb(43, 78, 135);
/* oklch */ color: oklch(42.8% 0.103 259.7);
Tailwind
colors: {
  custom: {
    50: '#6f7faa',
    500: '#2b4e87',
    950: '#000000',
  },
}
SCSS
$custom: #2b4e87;
$custom-light: #6f7faa;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4e87",
  "rgb": {
    "r": 43,
    "g": 78,
    "b": 135
  },
  "hsl": {
    "h": 217.174,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.42776,
    "c": 0.10328,
    "h": 259.7
  },
  "luminance": 0.07712
}

Semantic roles & 50–950 ramp

primary
#2B4E87
secondary
#B2915B
accent
#A54DDB
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2B4E87

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

Preview Lab → · Contrast checker → · Palette generator →

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