#2B5DAB#2B5DAB

#2B5DAB is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.7% C 0.136 H 259.1°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#2B5DAB
RGBrgb(43, 93, 171)
HSLhsl(217, 60%, 42%)
HSVhsv(217, 75%, 67%)
CMYKcmyk(74.9%, 45.6%, 0%, 32.9%)
CIE-LABlab(40.05, 11.03, -46.66)
CIE-LCHlch(40.05, 47.95, 283.30°)
OKLaboklab(48.66% -0.0257 -0.1337)
OKLCHoklch(48.66% 0.136 259.1)
XYZxyz(12.2586, 11.2812, 40.0516)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5DAB #AB792B
analogous
#2B9DAB #2B5DAB #392BAB
triadic
#2B5DAB #AB2B5D #5DAB2B
tetradic
#2B5DAB #AB2B9D #AB792B #2BAB39
square
#2B5DAB #AB2B9D #AB792B #2BAB39
split-complementary
#2B5DAB #AB392B #9DAB2B
monochromatic
#122849 #1F427A #2B5DAB #437AD0 #749DDC

Accessibility & contrast

On white

6.45
#2B5DAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#2B5DAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B5DAB
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5DAB#FFFFFF#000000##FFFFFF
##2B5DAB1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3565AE
Deuteranopia (green-blind)
#1A59A9
Tritanopia (blue-blind)
#006F7B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2b5dab;
/* rgb */ color: rgb(43, 93, 171);
/* oklch */ color: oklch(48.7% 0.136 259.1);
Tailwind
colors: {
  custom: {
    50: '#768ac4',
    500: '#2b5dab',
    950: '#000000',
  },
}
SCSS
$custom: #2b5dab;
$custom-light: #768ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5dab",
  "rgb": {
    "r": 43,
    "g": 93,
    "b": 171
  },
  "hsl": {
    "h": 216.563,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.48656,
    "c": 0.13616,
    "h": 259.1
  },
  "luminance": 0.11283
}

Semantic roles & 50–950 ramp

primary
#2B5DAB
secondary
#C4A26E
accent
#A545E3
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2B5DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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