#2B5EAB#2B5EAB

#2B5EAB is a mid, vivid blue. Relative luminance 0.115; OKLCH L 48.9% C 0.135 H 258.6°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#2B5EAB
RGBrgb(43, 94, 171)
HSLhsl(216, 60%, 42%)
HSVhsv(216, 75%, 67%)
CMYKcmyk(74.9%, 45%, 0%, 32.9%)
CIE-LABlab(40.34, 10.38, -46.20)
CIE-LCHlch(40.34, 47.35, 282.66°)
OKLaboklab(48.88% -0.0266 -0.1323)
OKLCHoklch(48.88% 0.135 258.6)
XYZxyz(12.3470, 11.4579, 40.0811)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5EAB #AB782B
analogous
#2B9EAB #2B5EAB #382BAB
triadic
#2B5EAB #AB2B5E #5EAB2B
tetradic
#2B5EAB #AB2B9E #AB782B #2BAB38
square
#2B5EAB #AB2B9E #AB782B #2BAB38
split-complementary
#2B5EAB #AB382B #9EAB2B
monochromatic
#122849 #1F437A #2B5EAB #437BD0 #749EDC

Accessibility & contrast

On white

6.38
#2B5EAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#2B5EAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B5EAB
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5EAB#FFFFFF#000000##FFFFFF
##2B5EAB1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3765AE
Deuteranopia (green-blind)
#1D5AA9
Tritanopia (blue-blind)
#00707C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2b5eab;
/* rgb */ color: rgb(43, 94, 171);
/* oklch */ color: oklch(48.9% 0.135 258.6);
Tailwind
colors: {
  custom: {
    50: '#768bc4',
    500: '#2b5eab',
    950: '#000000',
  },
}
SCSS
$custom: #2b5eab;
$custom-light: #768bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5eab",
  "rgb": {
    "r": 43,
    "g": 94,
    "b": 171
  },
  "hsl": {
    "h": 216.094,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4888,
    "c": 0.13497,
    "h": 258.6
  },
  "luminance": 0.11459
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B5EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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