#2B4F87#2B4F87

#2B4F87 is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.0% C 0.102 H 258.9°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#2B4F87
RGBrgb(43, 79, 135)
HSLhsl(217, 52%, 35%)
HSVhsv(217, 68%, 53%)
CMYKcmyk(68.1%, 41.5%, 0%, 47.1%)
CIE-LABlab(33.68, 6.48, -35.17)
CIE-LCHlch(33.68, 35.76, 280.45°)
OKLaboklab(43.01% -0.0196 -0.1002)
OKLCHoklch(43.01% 0.102 258.9)
XYZxyz(8.1639, 7.8540, 24.0027)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4F87 #87632B
analogous
#2B7D87 #2B4F87 #352B87
triadic
#2B4F87 #872B4F #4F872B
tetradic
#2B4F87 #872B7D #87632B #2B8735
square
#2B4F87 #872B7D #87632B #2B8735
split-complementary
#2B4F87 #87352B #7D872B
monochromatic
#0D192A #1C3459 #2B4F87 #3A6AB5 #608ACC

Accessibility & contrast

On white

8.17
#2B4F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2B4F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4F87
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4F87#FFFFFF#000000##FFFFFF
##2B4F871.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365489
Deuteranopia (green-blind)
#284B86
Tritanopia (blue-blind)
#005C64
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2b4f87;
/* rgb */ color: rgb(43, 79, 135);
/* oklch */ color: oklch(43.0% 0.102 258.9);
Tailwind
colors: {
  custom: {
    50: '#6f7faa',
    500: '#2b4f87',
    950: '#000000',
  },
}
SCSS
$custom: #2b4f87;
$custom-light: #6f7faa;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4f87",
  "rgb": {
    "r": 43,
    "g": 79,
    "b": 135
  },
  "hsl": {
    "h": 216.522,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.43012,
    "c": 0.10207,
    "h": 258.9
  },
  "luminance": 0.07855
}

Semantic roles & 50–950 ramp

primary
#2B4F87
secondary
#B2905B
accent
#A34DDB
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2B4F87

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

Preview Lab → · Contrast checker → · Palette generator →

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