#2B4F84#2B4F84

#2B4F84 is a dark, moderate blue. Relative luminance 0.078; OKLCH L 42.8% C 0.098 H 258.0°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#2B4F84
RGBrgb(43, 79, 132)
HSLhsl(216, 51%, 34%)
HSVhsv(216, 67%, 52%)
CMYKcmyk(67.4%, 40.2%, 0%, 48.2%)
CIE-LABlab(33.50, 5.35, -33.60)
CIE-LCHlch(33.50, 34.03, 279.05°)
OKLaboklab(42.82% -0.0203 -0.0956)
OKLCHoklch(42.82% 0.098 258)
XYZxyz(7.9556, 7.7707, 22.9060)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4F84 #84602B
analogous
#2B7C84 #2B4F84 #342B84
triadic
#2B4F84 #842B4F #4F842B
tetradic
#2B4F84 #842B7C #84602B #2B8434
square
#2B4F84 #842B7C #84602B #2B8434
split-complementary
#2B4F84 #84342B #7C842B
monochromatic
#0D1828 #1C3356 #2B4F84 #3A6BB2 #5F8ACB

Accessibility & contrast

On white

8.22
#2B4F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2B4F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4F84
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4F84#FFFFFF#000000##FFFFFF
##2B4F841.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375386
Deuteranopia (green-blind)
#2A4B83
Tritanopia (blue-blind)
#005B63
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2b4f84;
/* rgb */ color: rgb(43, 79, 132);
/* oklch */ color: oklch(42.8% 0.098 258.0);
Tailwind
colors: {
  custom: {
    50: '#6e7fa8',
    500: '#2b4f84',
    950: '#000000',
  },
}
SCSS
$custom: #2b4f84;
$custom-light: #6e7fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4f84",
  "rgb": {
    "r": 43,
    "g": 79,
    "b": 132
  },
  "hsl": {
    "h": 215.73,
    "s": 50.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.42818,
    "c": 0.09772,
    "h": 258
  },
  "luminance": 0.07771
}

Semantic roles & 50–950 ramp

primary
#2B4F84
secondary
#B18E5A
accent
#A14DDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2B4F84

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

Preview Lab → · Contrast checker → · Palette generator →

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