#2B5EB8#2B5EB8

#2B5EB8 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.8% C 0.153 H 260.8°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#2B5EB8
RGBrgb(43, 94, 184)
HSLhsl(218, 62%, 45%)
HSVhsv(218, 77%, 72%)
CMYKcmyk(76.6%, 48.9%, 0%, 27.8%)
CIE-LABlab(41.18, 15.35, -52.49)
CIE-LCHlch(41.18, 54.69, 286.30°)
OKLaboklab(49.8% -0.0244 -0.1508)
OKLCHoklch(49.8% 0.153 260.8)
XYZxyz(13.6476, 11.9781, 46.9308)
Luminance0.1198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5EB8 #B8852B
analogous
#2BA5B8 #2B5EB8 #3F2BB8
triadic
#2B5EB8 #B82B5E #5EB82B
tetradic
#2B5EB8 #B82BA5 #B8852B #2BB83F
square
#2B5EB8 #B82BA5 #B8852B #2BB83F
split-complementary
#2B5EB8 #B83F2B #A5B82B
monochromatic
#142B55 #1F4586 #2B5EB8 #4B7DD5 #7DA1E1

Accessibility & contrast

On white

6.18
#2B5EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#2B5EB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B5EB8
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5EB8#FFFFFF#000000##FFFFFF
##2B5EB81.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A68BB
Deuteranopia (green-blind)
#005BB6
Tritanopia (blue-blind)
#007482
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2b5eb8;
/* rgb */ color: rgb(43, 94, 184);
/* oklch */ color: oklch(49.8% 0.153 260.8);
Tailwind
colors: {
  custom: {
    50: '#798bce',
    500: '#2b5eb8',
    950: '#000000',
  },
}
SCSS
$custom: #2b5eb8;
$custom-light: #798bce;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5eb8",
  "rgb": {
    "r": 43,
    "g": 94,
    "b": 184
  },
  "hsl": {
    "h": 218.298,
    "s": 62.115,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49797,
    "c": 0.1528,
    "h": 260.8
  },
  "luminance": 0.1198
}

Semantic roles & 50–950 ramp

primary
#2B5EB8
secondary
#C9AB76
accent
#AA43E5
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0B14
muted
#7C7C82

Preview Lab

Preview with #2B5EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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