#2B56A4#2B56A4

#2B56A4 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.6% C 0.135 H 261.2°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#2B56A4
RGBrgb(43, 86, 164)
HSLhsl(219, 58%, 41%)
HSVhsv(219, 74%, 64%)
CMYKcmyk(73.8%, 47.6%, 0%, 35.7%)
CIE-LABlab(37.57, 12.93, -46.49)
CIE-LCHlch(37.57, 48.26, 285.54°)
OKLaboklab(46.6% -0.0207 -0.1333)
OKLCHoklch(46.6% 0.135 261.2)
XYZxyz(11.0225, 9.8483, 36.4348)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B56A4 #A4792B
analogous
#2B92A4 #2B56A4 #3D2BA4
triadic
#2B56A4 #A42B56 #56A42B
tetradic
#2B56A4 #A42B92 #A4792B #2BA43D
square
#2B56A4 #A42B92 #A4792B #2BA43D
split-complementary
#2B56A4 #A43D2B #92A42B
monochromatic
#122343 #1E3D74 #2B56A4 #3F72CD #7095D9

Accessibility & contrast

On white

7.07
#2B56A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2B56A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B56A4
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B56A4#FFFFFF#000000##FFFFFF
##2B56A41.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5EA7
Deuteranopia (green-blind)
#0E53A2
Tritanopia (blue-blind)
#006875
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2b56a4;
/* rgb */ color: rgb(43, 86, 164);
/* oklch */ color: oklch(46.6% 0.135 261.2);
Tailwind
colors: {
  custom: {
    50: '#7585bf',
    500: '#2b56a4',
    950: '#000000',
  },
}
SCSS
$custom: #2b56a4;
$custom-light: #7585bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b56a4",
  "rgb": {
    "r": 43,
    "g": 86,
    "b": 164
  },
  "hsl": {
    "h": 218.678,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46601,
    "c": 0.13493,
    "h": 261.2
  },
  "luminance": 0.0985
}

Semantic roles & 50–950 ramp

primary
#2B56A4
secondary
#C1A26A
accent
#AA46E2
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2B56A4

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

Preview Lab → · Contrast checker → · Palette generator →

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