#2D56A3#2D56A3

#2D56A3 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.6% C 0.133 H 261.6°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#2D56A3
RGBrgb(45, 86, 163)
HSLhsl(219, 57%, 41%)
HSVhsv(219, 72%, 64%)
CMYKcmyk(72.4%, 47.2%, 0%, 36.1%)
CIE-LABlab(37.58, 12.83, -45.87)
CIE-LCHlch(37.58, 47.63, 285.63°)
OKLaboklab(46.61% -0.0193 -0.1315)
OKLCHoklch(46.61% 0.133 261.6)
XYZxyz(11.0185, 9.8566, 35.9651)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D56A3 #A37A2D
analogous
#2D91A3 #2D56A3 #3F2DA3
triadic
#2D56A3 #A32D56 #56A32D
tetradic
#2D56A3 #A32D91 #A37A2D #2DA33F
square
#2D56A3 #A32D91 #A37A2D #2DA33F
split-complementary
#2D56A3 #A33F2D #91A32D
monochromatic
#132343 #203D73 #2D56A3 #4272CB #7296D8

Accessibility & contrast

On white

7.07
#2D56A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2D56A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D56A3
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D56A3#FFFFFF#000000##FFFFFF
##2D56A31.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5EA6
Deuteranopia (green-blind)
#1253A1
Tritanopia (blue-blind)
#006874
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2d56a3;
/* rgb */ color: rgb(45, 86, 163);
/* oklch */ color: oklch(46.6% 0.133 261.6);
Tailwind
colors: {
  custom: {
    50: '#7585bf',
    500: '#2d56a3',
    950: '#000000',
  },
}
SCSS
$custom: #2d56a3;
$custom-light: #7585bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d56a3",
  "rgb": {
    "r": 45,
    "g": 86,
    "b": 163
  },
  "hsl": {
    "h": 219.153,
    "s": 56.731,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46614,
    "c": 0.13287,
    "h": 261.6
  },
  "luminance": 0.09858
}

Semantic roles & 50–950 ramp

primary
#2D56A3
secondary
#C0A36C
accent
#AB48E0
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2D56A3

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

Preview Lab → · Contrast checker → · Palette generator →

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