#2B56B7#2B56B7

#2B56B7 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.0% C 0.161 H 263.5°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#2B56B7
RGBrgb(43, 86, 183)
HSLhsl(222, 62%, 44%)
HSVhsv(222, 77%, 72%)
CMYKcmyk(76.5%, 53%, 0%, 28.2%)
CIE-LABlab(38.88, 20.21, -55.63)
CIE-LCHlch(38.88, 59.19, 289.97°)
OKLaboklab(48.02% -0.0182 -0.1602)
OKLCHoklch(48.02% 0.161 263.5)
XYZxyz(12.8682, 10.5866, 46.1558)
Luminance0.1059 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B56B7 #B78C2B
analogous
#2B9CB7 #2B56B7 #462BB7
triadic
#2B56B7 #B72B56 #56B72B
tetradic
#2B56B7 #B72B9C #B78C2B #2BB746
square
#2B56B7 #B72B9C #B78C2B #2BB746
split-complementary
#2B56B7 #B7462B #9CB72B
monochromatic
#142754 #1F3F85 #2B56B7 #4B75D5 #7C9BE0

Accessibility & contrast

On white

6.74
#2B56B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#2B56B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B56B7
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B56B7#FFFFFF#000000##FFFFFF
##2B56B71.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F62BA
Deuteranopia (green-blind)
#0055B5
Tritanopia (blue-blind)
#006E7E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2b56b7;
/* rgb */ color: rgb(43, 86, 183);
/* oklch */ color: oklch(48.0% 0.161 263.5);
Tailwind
colors: {
  custom: {
    50: '#7985cd',
    500: '#2b56b7',
    950: '#000000',
  },
}
SCSS
$custom: #2b56b7;
$custom-light: #7985cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2b56b7",
  "rgb": {
    "r": 43,
    "g": 86,
    "b": 183
  },
  "hsl": {
    "h": 221.571,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48015,
    "c": 0.16125,
    "h": 263.5
  },
  "luminance": 0.10588
}

Semantic roles & 50–950 ramp

primary
#2B56B7
secondary
#C9AF75
accent
#B343E5
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B14
muted
#7C7C82

Preview Lab

Preview with #2B56B7

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

Preview Lab → · Contrast checker → · Palette generator →

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