#2B4E8C#2B4E8C

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

Color values

HEX#2B4E8C
RGBrgb(43, 78, 140)
HSLhsl(218, 53%, 36%)
HSVhsv(218, 69%, 55%)
CMYKcmyk(69.3%, 44.3%, 0%, 45.1%)
CIE-LABlab(33.68, 9.05, -38.23)
CIE-LCHlch(33.68, 39.29, 283.31°)
OKLaboklab(43.11% -0.0174 -0.1092)
OKLCHoklch(43.11% 0.111 260.9)
XYZxyz(8.4526, 7.8550, 25.8766)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4E8C #8C692B
analogous
#2B7E8C #2B4E8C #392B8C
triadic
#2B4E8C #8C2B4E #4E8C2B
tetradic
#2B4E8C #8C2B7E #8C692B #2B8C39
square
#2B4E8C #8C2B7E #8C692B #2B8C39
split-complementary
#2B4E8C #8C392B #7E8C2B
monochromatic
#0E1A2E #1D345D #2B4E8C #3968BB #628ACF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B4E8C#FFFFFF#000000##FFFFFF
##2B4E8C1.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)
#31548E
Deuteranopia (green-blind)
#204B8B
Tritanopia (blue-blind)
#005C66
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2b4e8c;
/* rgb */ color: rgb(43, 78, 140);
/* oklch */ color: oklch(43.1% 0.111 260.9);
Tailwind
colors: {
  custom: {
    50: '#707fae',
    500: '#2b4e8c',
    950: '#000000',
  },
}
SCSS
$custom: #2b4e8c;
$custom-light: #707fae;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4e8c",
  "rgb": {
    "r": 43,
    "g": 78,
    "b": 140
  },
  "hsl": {
    "h": 218.351,
    "s": 53.005,
    "l": 35.882
  },
  "oklch": {
    "l": 0.43112,
    "c": 0.11056,
    "h": 260.9
  },
  "luminance": 0.07856
}

Semantic roles & 50–950 ramp

primary
#2B4E8C
secondary
#B5965E
accent
#A84BDC
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2B4E8C

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

Preview Lab → · Contrast checker → · Palette generator →

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