#2B4EAB#2B4EAB

#2B4EAB is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.4% C 0.155 H 265.1°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#2B4EAB
RGBrgb(43, 78, 171)
HSLhsl(224, 60%, 42%)
HSVhsv(224, 75%, 67%)
CMYKcmyk(74.9%, 54.4%, 0%, 32.9%)
CIE-LABlab(35.79, 20.92, -53.53)
CIE-LCHlch(35.79, 57.47, 291.35°)
OKLaboklab(45.4% -0.0131 -0.1542)
OKLCHoklch(45.4% 0.155 265.1)
XYZxyz(11.0687, 8.9014, 39.6550)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4EAB #AB882B
analogous
#2B8EAB #2B4EAB #482BAB
triadic
#2B4EAB #AB2B4E #4EAB2B
tetradic
#2B4EAB #AB2B8E #AB882B #2BAB48
square
#2B4EAB #AB2B8E #AB882B #2BAB48
split-complementary
#2B4EAB #AB482B #8EAB2B
monochromatic
#122149 #1F387A #2B4EAB #436AD0 #7491DC

Accessibility & contrast

On white

7.55
#2B4EAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#2B4EAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4EAB
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4EAB#FFFFFF#000000##FFFFFF
##2B4EAB1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#015AAE
Deuteranopia (green-blind)
#004FA9
Tritanopia (blue-blind)
#006575
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2b4eab;
/* rgb */ color: rgb(43, 78, 171);
/* oklch */ color: oklch(45.4% 0.155 265.1);
Tailwind
colors: {
  custom: {
    50: '#777fc5',
    500: '#2b4eab',
    950: '#000000',
  },
}
SCSS
$custom: #2b4eab;
$custom-light: #777fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4eab",
  "rgb": {
    "r": 43,
    "g": 78,
    "b": 171
  },
  "hsl": {
    "h": 223.594,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45404,
    "c": 0.15473,
    "h": 265.1
  },
  "luminance": 0.08903
}

Semantic roles & 50–950 ramp

primary
#2B4EAB
secondary
#C4AC6E
accent
#B845E3
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2B4EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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