#2D56A6#2D56A6

#2D56A6 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 46.8% C 0.137 H 262.1°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#2D56A6
RGBrgb(45, 86, 166)
HSLhsl(220, 57%, 41%)
HSVhsv(220, 73%, 65%)
CMYKcmyk(72.9%, 48.2%, 0%, 34.9%)
CIE-LABlab(37.78, 13.98, -47.34)
CIE-LCHlch(37.78, 49.36, 286.45°)
OKLaboklab(46.83% -0.0188 -0.1358)
OKLCHoklch(46.83% 0.137 262.1)
XYZxyz(11.2905, 9.9654, 37.3975)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D56A6 #A67D2D
analogous
#2D93A6 #2D56A6 #402DA6
triadic
#2D56A6 #A62D56 #56A62D
tetradic
#2D56A6 #A62D93 #A67D2D #2DA640
square
#2D56A6 #A62D93 #A67D2D #2DA640
split-complementary
#2D56A6 #A6402D #93A62D
monochromatic
#132446 #203D76 #2D56A6 #4472CC #7496D9

Accessibility & contrast

On white

7.02
#2D56A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#2D56A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D56A6
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D56A6#FFFFFF#000000##FFFFFF
##2D56A61.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5FA9
Deuteranopia (green-blind)
#0954A4
Tritanopia (blue-blind)
#006976
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2d56a6;
/* rgb */ color: rgb(45, 86, 166);
/* oklch */ color: oklch(46.8% 0.137 262.1);
Tailwind
colors: {
  custom: {
    50: '#7685c1',
    500: '#2d56a6',
    950: '#000000',
  },
}
SCSS
$custom: #2d56a6;
$custom-light: #7685c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d56a6",
  "rgb": {
    "r": 45,
    "g": 86,
    "b": 166
  },
  "hsl": {
    "h": 219.669,
    "s": 57.346,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46828,
    "c": 0.13709,
    "h": 262.1
  },
  "luminance": 0.09967
}

Semantic roles & 50–950 ramp

primary
#2D56A6
secondary
#C1A56E
accent
#AD47E1
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2D56A6

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

Preview Lab → · Contrast checker → · Palette generator →

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