#2B4E8A#2B4E8A

#2B4E8A is a dark, moderate blue. Relative luminance 0.078; OKLCH L 43.0% C 0.108 H 260.5°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#2B4E8A
RGBrgb(43, 78, 138)
HSLhsl(218, 52%, 35%)
HSVhsv(218, 69%, 54%)
CMYKcmyk(68.8%, 43.5%, 0%, 45.9%)
CIE-LABlab(33.56, 8.29, -37.20)
CIE-LCHlch(33.56, 38.11, 282.56°)
OKLaboklab(42.98% -0.0178 -0.1062)
OKLCHoklch(42.98% 0.108 260.5)
XYZxyz(8.3065, 7.7965, 25.1070)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4E8A #8A672B
analogous
#2B7D8A #2B4E8A #382B8A
triadic
#2B4E8A #8A2B4E #4E8A2B
tetradic
#2B4E8A #8A2B7D #8A672B #2B8A38
square
#2B4E8A #8A2B7D #8A672B #2B8A38
split-complementary
#2B4E8A #8A382B #7D8A2B
monochromatic
#0E192D #1C345B #2B4E8A #3A68B9 #6189CE

Accessibility & contrast

On white

8.21
#2B4E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2B4E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4E8A
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4E8A#FFFFFF#000000##FFFFFF
##2B4E8A1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32548C
Deuteranopia (green-blind)
#234B89
Tritanopia (blue-blind)
#005C65
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2b4e8a;
/* rgb */ color: rgb(43, 78, 138);
/* oklch */ color: oklch(43.0% 0.108 260.5);
Tailwind
colors: {
  custom: {
    50: '#6f7fac',
    500: '#2b4e8a',
    950: '#000000',
  },
}
SCSS
$custom: #2b4e8a;
$custom-light: #6f7fac;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4e8a",
  "rgb": {
    "r": 43,
    "g": 78,
    "b": 138
  },
  "hsl": {
    "h": 217.895,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.42976,
    "c": 0.10765,
    "h": 260.5
  },
  "luminance": 0.07797
}

Semantic roles & 50–950 ramp

primary
#2B4E8A
secondary
#B4945D
accent
#A74CDC
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2B4E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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