#2D56A4#2D56A4

#2D56A4 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.7% C 0.134 H 261.8°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#2D56A4
RGBrgb(45, 86, 164)
HSLhsl(219, 57%, 41%)
HSVhsv(219, 73%, 64%)
CMYKcmyk(72.6%, 47.6%, 0%, 35.7%)
CIE-LABlab(37.65, 13.21, -46.36)
CIE-LCHlch(37.65, 48.20, 285.91°)
OKLaboklab(46.69% -0.0191 -0.1329)
OKLCHoklch(46.69% 0.134 261.8)
XYZxyz(11.1084, 9.8926, 36.4388)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D56A4 #A47B2D
analogous
#2D91A4 #2D56A4 #3F2DA4
triadic
#2D56A4 #A42D56 #56A42D
tetradic
#2D56A4 #A42D91 #A47B2D #2DA43F
square
#2D56A4 #A42D91 #A47B2D #2DA43F
split-complementary
#2D56A4 #A43F2D #91A42D
monochromatic
#132444 #203D74 #2D56A4 #4372CB #7396D9

Accessibility & contrast

On white

7.05
#2D56A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#2D56A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D56A4
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D56A4#FFFFFF#000000##FFFFFF
##2D56A41.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5EA7
Deuteranopia (green-blind)
#1053A2
Tritanopia (blue-blind)
#006875
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2d56a4;
/* rgb */ color: rgb(45, 86, 164);
/* oklch */ color: oklch(46.7% 0.134 261.8);
Tailwind
colors: {
  custom: {
    50: '#7585bf',
    500: '#2d56a4',
    950: '#000000',
  },
}
SCSS
$custom: #2d56a4;
$custom-light: #7585bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d56a4",
  "rgb": {
    "r": 45,
    "g": 86,
    "b": 164
  },
  "hsl": {
    "h": 219.328,
    "s": 56.938,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46685,
    "c": 0.13428,
    "h": 261.8
  },
  "luminance": 0.09894
}

Semantic roles & 50–950 ramp

primary
#2D56A4
secondary
#C0A36D
accent
#AC48E0
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2D56A4

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

Preview Lab → · Contrast checker → · Palette generator →

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