#2B4BAB#2B4BAB

#2B4BAB is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.8% C 0.159 H 266.1°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#2B4BAB
RGBrgb(43, 75, 171)
HSLhsl(225, 60%, 42%)
HSVhsv(225, 75%, 67%)
CMYKcmyk(74.9%, 56.1%, 0%, 32.9%)
CIE-LABlab(34.97, 22.92, -54.86)
CIE-LCHlch(34.97, 59.45, 292.67°)
OKLaboklab(44.78% -0.0107 -0.1582)
OKLCHoklch(44.78% 0.159 266.1)
XYZxyz(10.8604, 8.4848, 39.5855)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4BAB #AB8B2B
analogous
#2B8BAB #2B4BAB #4B2BAB
triadic
#2B4BAB #AB2B4B #4BAB2B
tetradic
#2B4BAB #AB2B8B #AB8B2B #2BAB4B
square
#2B4BAB #AB2B8B #AB8B2B #2BAB4B
split-complementary
#2B4BAB #AB4B2B #8BAB2B
monochromatic
#122049 #1F367A #2B4BAB #4366D0 #748EDC

Accessibility & contrast

On white

7.79
#2B4BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#2B4BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4BAB
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4BAB#FFFFFF#000000##FFFFFF
##2B4BAB1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AE
Deuteranopia (green-blind)
#004DA9
Tritanopia (blue-blind)
#006373
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2b4bab;
/* rgb */ color: rgb(43, 75, 171);
/* oklch */ color: oklch(44.8% 0.159 266.1);
Tailwind
colors: {
  custom: {
    50: '#777cc5',
    500: '#2b4bab',
    950: '#000000',
  },
}
SCSS
$custom: #2b4bab;
$custom-light: #777cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4bab",
  "rgb": {
    "r": 43,
    "g": 75,
    "b": 171
  },
  "hsl": {
    "h": 225,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.44784,
    "c": 0.15851,
    "h": 266.1
  },
  "luminance": 0.08486
}

Semantic roles & 50–950 ramp

primary
#2B4BAB
secondary
#C4AE6E
accent
#BB45E3
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2B4BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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