#2B56B8#2B56B8

#2B56B8 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.1% C 0.163 H 263.6°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#2B56B8
RGBrgb(43, 86, 184)
HSLhsl(222, 62%, 45%)
HSVhsv(222, 77%, 72%)
CMYKcmyk(76.6%, 53.3%, 0%, 27.8%)
CIE-LABlab(38.95, 20.59, -56.10)
CIE-LCHlch(38.95, 59.76, 290.16°)
OKLaboklab(48.09% -0.0181 -0.1616)
OKLCHoklch(48.09% 0.163 263.6)
XYZxyz(12.9727, 10.6284, 46.7059)
Luminance0.1063 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B56B8 #B88D2B
analogous
#2B9DB8 #2B56B8 #462BB8
triadic
#2B56B8 #B82B56 #56B82B
tetradic
#2B56B8 #B82B9D #B88D2B #2BB846
square
#2B56B8 #B82B9D #B88D2B #2BB846
split-complementary
#2B56B8 #B8462B #9DB82B
monochromatic
#142855 #1F3F86 #2B56B8 #4B75D5 #7D9BE1

Accessibility & contrast

On white

6.72
#2B56B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#2B56B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B56B8
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B56B8#FFFFFF#000000##FFFFFF
##2B56B81.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B63BB
Deuteranopia (green-blind)
#0056B6
Tritanopia (blue-blind)
#006E7E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2b56b8;
/* rgb */ color: rgb(43, 86, 184);
/* oklch */ color: oklch(48.1% 0.163 263.6);
Tailwind
colors: {
  custom: {
    50: '#7985ce',
    500: '#2b56b8',
    950: '#000000',
  },
}
SCSS
$custom: #2b56b8;
$custom-light: #7985ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2b56b8",
  "rgb": {
    "r": 43,
    "g": 86,
    "b": 184
  },
  "hsl": {
    "h": 221.702,
    "s": 62.115,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48093,
    "c": 0.16261,
    "h": 263.6
  },
  "luminance": 0.1063
}

Semantic roles & 50–950 ramp

primary
#2B56B8
secondary
#C9B076
accent
#B443E5
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2B56B8

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

Preview Lab → · Contrast checker → · Palette generator →

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