#2D56B9#2D56B9

#2D56B9 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.3% C 0.163 H 264.2°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#2D56B9
RGBrgb(45, 86, 185)
HSLhsl(222, 61%, 45%)
HSVhsv(222, 76%, 73%)
CMYKcmyk(75.7%, 53.5%, 0%, 27.5%)
CIE-LABlab(39.10, 21.21, -56.44)
CIE-LCHlch(39.10, 60.29, 290.60°)
OKLaboklab(48.25% -0.0165 -0.1626)
OKLCHoklch(48.25% 0.163 264.2)
XYZxyz(13.1638, 10.7148, 47.2639)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D56B9 #B9902D
analogous
#2D9CB9 #2D56B9 #4A2DB9
triadic
#2D56B9 #B92D56 #56B92D
tetradic
#2D56B9 #B92D9C #B9902D #2DB94A
square
#2D56B9 #B92D9C #B9902D #2DB94A
split-complementary
#2D56B9 #B94A2D #9CB92D
monochromatic
#152857 #213F88 #2D56B9 #4F76D4 #809CE0

Accessibility & contrast

On white

6.68
#2D56B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#2D56B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D56B9
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D56B9#FFFFFF#000000##FFFFFF
##2D56B91.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0863BC
Deuteranopia (green-blind)
#0056B7
Tritanopia (blue-blind)
#006E7F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2d56b9;
/* rgb */ color: rgb(45, 86, 185);
/* oklch */ color: oklch(48.3% 0.163 264.2);
Tailwind
colors: {
  custom: {
    50: '#7a85cf',
    500: '#2d56b9',
    950: '#000000',
  },
}
SCSS
$custom: #2d56b9;
$custom-light: #7a85cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d56b9",
  "rgb": {
    "r": 45,
    "g": 86,
    "b": 185
  },
  "hsl": {
    "h": 222.429,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4825,
    "c": 0.16342,
    "h": 264.2
  },
  "luminance": 0.10716
}

Semantic roles & 50–950 ramp

primary
#2D56B9
secondary
#C9B279
accent
#B544E4
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2D56B9

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

Preview Lab → · Contrast checker → · Palette generator →

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