#2B4DAB#2B4DAB

#2B4DAB is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.2% C 0.156 H 265.5°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#2B4DAB
RGBrgb(43, 77, 171)
HSLhsl(224, 60%, 42%)
HSVhsv(224, 75%, 67%)
CMYKcmyk(74.9%, 55%, 0%, 32.9%)
CIE-LABlab(35.52, 21.59, -53.97)
CIE-LCHlch(35.52, 58.13, 291.80°)
OKLaboklab(45.2% -0.0123 -0.1555)
OKLCHoklch(45.2% 0.156 265.5)
XYZxyz(10.9982, 8.7604, 39.6315)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4DAB #AB892B
analogous
#2B8DAB #2B4DAB #492BAB
triadic
#2B4DAB #AB2B4D #4DAB2B
tetradic
#2B4DAB #AB2B8D #AB892B #2BAB49
square
#2B4DAB #AB2B8D #AB892B #2BAB49
split-complementary
#2B4DAB #AB492B #8DAB2B
monochromatic
#122149 #1F377A #2B4DAB #4369D0 #7490DC

Accessibility & contrast

On white

7.63
#2B4DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#2B4DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4DAB
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4DAB#FFFFFF#000000##FFFFFF
##2B4DAB1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAE
Deuteranopia (green-blind)
#004EA9
Tritanopia (blue-blind)
#006474
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2b4dab;
/* rgb */ color: rgb(43, 77, 171);
/* oklch */ color: oklch(45.2% 0.156 265.5);
Tailwind
colors: {
  custom: {
    50: '#777ec5',
    500: '#2b4dab',
    950: '#000000',
  },
}
SCSS
$custom: #2b4dab;
$custom-light: #777ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4dab",
  "rgb": {
    "r": 43,
    "g": 77,
    "b": 171
  },
  "hsl": {
    "h": 224.063,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45196,
    "c": 0.156,
    "h": 265.5
  },
  "luminance": 0.08762
}

Semantic roles & 50–950 ramp

primary
#2B4DAB
secondary
#C4AD6E
accent
#B945E3
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2B4DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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