#2B5BAB#2B5BAB

#2B5BAB is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.2% C 0.139 H 260.0°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#2B5BAB
RGBrgb(43, 91, 171)
HSLhsl(218, 60%, 42%)
HSVhsv(218, 75%, 67%)
CMYKcmyk(74.9%, 46.8%, 0%, 32.9%)
CIE-LABlab(39.47, 12.33, -47.59)
CIE-LCHlch(39.47, 49.17, 284.52°)
OKLaboklab(48.21% -0.024 -0.1365)
OKLCHoklch(48.21% 0.139 260)
XYZxyz(12.0854, 10.9347, 39.9939)
Luminance0.1094 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5BAB #AB7B2B
analogous
#2B9BAB #2B5BAB #3B2BAB
triadic
#2B5BAB #AB2B5B #5BAB2B
tetradic
#2B5BAB #AB2B9B #AB7B2B #2BAB3B
square
#2B5BAB #AB2B9B #AB7B2B #2BAB3B
split-complementary
#2B5BAB #AB3B2B #9BAB2B
monochromatic
#122749 #1F417A #2B5BAB #4378D0 #749BDC

Accessibility & contrast

On white

6.59
#2B5BAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#2B5BAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B5BAB
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5BAB#FFFFFF#000000##FFFFFF
##2B5BAB1.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3163AE
Deuteranopia (green-blind)
#1257A9
Tritanopia (blue-blind)
#006E7A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2b5bab;
/* rgb */ color: rgb(43, 91, 171);
/* oklch */ color: oklch(48.2% 0.139 260.0);
Tailwind
colors: {
  custom: {
    50: '#7688c4',
    500: '#2b5bab',
    950: '#000000',
  },
}
SCSS
$custom: #2b5bab;
$custom-light: #7688c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5bab",
  "rgb": {
    "r": 43,
    "g": 91,
    "b": 171
  },
  "hsl": {
    "h": 217.5,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.48209,
    "c": 0.13858,
    "h": 260
  },
  "luminance": 0.10936
}

Semantic roles & 50–950 ramp

primary
#2B5BAB
secondary
#C4A46E
accent
#A845E3
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2B5BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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