#2B4D7F#2B4D7F

#2B4D7F is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.0% C 0.093 H 258.0°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#2B4D7F
RGBrgb(43, 77, 127)
HSLhsl(216, 49%, 33%)
HSVhsv(216, 66%, 50%)
CMYKcmyk(66.1%, 39.4%, 0%, 50.2%)
CIE-LABlab(32.60, 4.79, -31.95)
CIE-LCHlch(32.60, 32.31, 278.53°)
OKLaboklab(42.02% -0.0193 -0.0908)
OKLCHoklch(42.02% 0.093 258)
XYZxyz(7.4795, 7.3529, 21.0996)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4D7F #7F5D2B
analogous
#2B777F #2B4D7F #332B7F
triadic
#2B4D7F #7F2B4D #4D7F2B
tetradic
#2B4D7F #7F2B77 #7F5D2B #2B7F33
square
#2B4D7F #7F2B77 #7F5D2B #2B7F33
split-complementary
#2B4D7F #7F332B #777F2B
monochromatic
#0C1624 #1C3151 #2B4D7F #3A69AD #5C88C8

Accessibility & contrast

On white

8.50
#2B4D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2B4D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4D7F
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4D7F#FFFFFF#000000##FFFFFF
##2B4D7F1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375181
Deuteranopia (green-blind)
#2B497E
Tritanopia (blue-blind)
#005860
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2b4d7f;
/* rgb */ color: rgb(43, 77, 127);
/* oklch */ color: oklch(42.0% 0.093 258.0);
Tailwind
colors: {
  custom: {
    50: '#6d7ea4',
    500: '#2b4d7f',
    950: '#000000',
  },
}
SCSS
$custom: #2b4d7f;
$custom-light: #6d7ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4d7f",
  "rgb": {
    "r": 43,
    "g": 77,
    "b": 127
  },
  "hsl": {
    "h": 215.714,
    "s": 49.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.42021,
    "c": 0.09281,
    "h": 258
  },
  "luminance": 0.07354
}

Semantic roles & 50–950 ramp

primary
#2B4D7F
secondary
#AE8B58
accent
#A14FD9
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2B4D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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