#2B56AC#2B56AC

#2B56AC is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.2% C 0.146 H 262.3°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#2B56AC
RGBrgb(43, 86, 172)
HSLhsl(220, 60%, 42%)
HSVhsv(220, 75%, 67%)
CMYKcmyk(75%, 50%, 0%, 32.5%)
CIE-LABlab(38.10, 16.00, -50.39)
CIE-LCHlch(38.10, 52.86, 287.62°)
OKLaboklab(47.18% -0.0195 -0.1448)
OKLCHoklch(47.18% 0.146 262.3)
XYZxyz(11.7678, 10.1464, 40.3600)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B56AC #AC812B
analogous
#2B97AC #2B56AC #412BAC
triadic
#2B56AC #AC2B56 #56AC2B
tetradic
#2B56AC #AC2B97 #AC812B #2BAC41
square
#2B56AC #AC2B97 #AC812B #2BAC41
split-complementary
#2B56AC #AC412B #97AC2B
monochromatic
#13254A #1F3E7B #2B56AC #4473D0 #7597DC

Accessibility & contrast

On white

6.93
#2B56AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#2B56AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B56AC
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B56AC#FFFFFF#000000##FFFFFF
##2B56AC1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2360AF
Deuteranopia (green-blind)
#0054AA
Tritanopia (blue-blind)
#006B79
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2b56ac;
/* rgb */ color: rgb(43, 86, 172);
/* oklch */ color: oklch(47.2% 0.146 262.3);
Tailwind
colors: {
  custom: {
    50: '#7685c5',
    500: '#2b56ac',
    950: '#000000',
  },
}
SCSS
$custom: #2b56ac;
$custom-light: #7685c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b56ac",
  "rgb": {
    "r": 43,
    "g": 86,
    "b": 172
  },
  "hsl": {
    "h": 220,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47182,
    "c": 0.1461,
    "h": 262.3
  },
  "luminance": 0.10148
}

Semantic roles & 50–950 ramp

primary
#2B56AC
secondary
#C4A86F
accent
#AE45E3
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2B56AC

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

Preview Lab → · Contrast checker → · Palette generator →

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