#2B4B87#2B4B87

#2B4B87 is a dark, moderate blue. Relative luminance 0.073; OKLCH L 42.1% C 0.107 H 261.8°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#2B4B87
RGBrgb(43, 75, 135)
HSLhsl(219, 52%, 35%)
HSVhsv(219, 68%, 53%)
CMYKcmyk(68.1%, 44.4%, 0%, 47.1%)
CIE-LABlab(32.47, 9.15, -37.10)
CIE-LCHlch(32.47, 38.21, 283.85°)
OKLaboklab(42.08% -0.0153 -0.1059)
OKLCHoklch(42.08% 0.107 261.8)
XYZxyz(7.8840, 7.2942, 23.9094)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4B87 #87672B
analogous
#2B7987 #2B4B87 #392B87
triadic
#2B4B87 #872B4B #4B872B
tetradic
#2B4B87 #872B79 #87672B #2B8739
square
#2B4B87 #872B79 #87672B #2B8739
split-complementary
#2B4B87 #87392B #79872B
monochromatic
#0D172A #1C3159 #2B4B87 #3A65B5 #6086CC

Accessibility & contrast

On white

8.54
#2B4B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2B4B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4B87
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4B87#FFFFFF#000000##FFFFFF
##2B4B871.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5189
Deuteranopia (green-blind)
#204886
Tritanopia (blue-blind)
#005962
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2b4b87;
/* rgb */ color: rgb(43, 75, 135);
/* oklch */ color: oklch(42.1% 0.107 261.8);
Tailwind
colors: {
  custom: {
    50: '#6f7caa',
    500: '#2b4b87',
    950: '#000000',
  },
}
SCSS
$custom: #2b4b87;
$custom-light: #6f7caa;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4b87",
  "rgb": {
    "r": 43,
    "g": 75,
    "b": 135
  },
  "hsl": {
    "h": 219.13,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.42076,
    "c": 0.107,
    "h": 261.8
  },
  "luminance": 0.07295
}

Semantic roles & 50–950 ramp

primary
#2B4B87
secondary
#B2945B
accent
#AA4DDB
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2B4B87

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

Preview Lab → · Contrast checker → · Palette generator →

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