#2D56B7#2D56B7

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

Color values

HEX#2D56B7
RGBrgb(45, 86, 183)
HSLhsl(222, 61%, 45%)
HSVhsv(222, 75%, 72%)
CMYKcmyk(75.4%, 53%, 0%, 28.2%)
CIE-LABlab(38.95, 20.45, -55.50)
CIE-LCHlch(38.95, 59.15, 290.23°)
OKLaboklab(48.1% -0.0167 -0.1598)
OKLCHoklch(48.1% 0.161 264)
XYZxyz(12.9542, 10.6309, 46.1598)
Luminance0.1063 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D56B7 #B78E2D
analogous
#2D9BB7 #2D56B7 #492DB7
triadic
#2D56B7 #B72D56 #56B72D
tetradic
#2D56B7 #B72D9B #B78E2D #2DB749
square
#2D56B7 #B72D9B #B78E2D #2DB749
split-complementary
#2D56B7 #B7492D #9BB72D
monochromatic
#152855 #213F86 #2D56B7 #4E75D3 #7F9CDF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D56B7#FFFFFF#000000##FFFFFF
##2D56B71.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)
#0F62BA
Deuteranopia (green-blind)
#0056B5
Tritanopia (blue-blind)
#006E7E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2d56b7;
/* rgb */ color: rgb(45, 86, 183);
/* oklch */ color: oklch(48.1% 0.161 264.0);
Tailwind
colors: {
  custom: {
    50: '#7a85cd',
    500: '#2d56b7',
    950: '#000000',
  },
}
SCSS
$custom: #2d56b7;
$custom-light: #7a85cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d56b7",
  "rgb": {
    "r": 45,
    "g": 86,
    "b": 183
  },
  "hsl": {
    "h": 222.174,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48095,
    "c": 0.16068,
    "h": 264
  },
  "luminance": 0.10632
}

Semantic roles & 50–950 ramp

primary
#2D56B7
secondary
#C8B078
accent
#B444E4
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2D56B7

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

Preview Lab → · Contrast checker → · Palette generator →

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