#2D56AB#2D56AB

#2D56AB is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.2% C 0.144 H 262.8°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#2D56AB
RGBrgb(45, 86, 171)
HSLhsl(220, 58%, 42%)
HSVhsv(220, 74%, 67%)
CMYKcmyk(73.7%, 49.7%, 0%, 32.9%)
CIE-LABlab(38.11, 15.88, -49.77)
CIE-LCHlch(38.11, 52.24, 287.70°)
OKLaboklab(47.19% -0.0181 -0.1429)
OKLCHoklch(47.19% 0.144 262.8)
XYZxyz(11.7580, 10.1525, 39.8601)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D56AB #AB822D
analogous
#2D95AB #2D56AB #432DAB
triadic
#2D56AB #AB2D56 #56AB2D
tetradic
#2D56AB #AB2D95 #AB822D #2DAB43
square
#2D56AB #AB2D95 #AB822D #2DAB43
split-complementary
#2D56AB #AB432D #95AB2D
monochromatic
#14254A #203E7B #2D56AB #4773CE #7798DB

Accessibility & contrast

On white

6.93
#2D56AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#2D56AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D56AB
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D56AB#FFFFFF#000000##FFFFFF
##2D56AB1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2560AE
Deuteranopia (green-blind)
#0054A9
Tritanopia (blue-blind)
#006A78
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2d56ab;
/* rgb */ color: rgb(45, 86, 171);
/* oklch */ color: oklch(47.2% 0.144 262.8);
Tailwind
colors: {
  custom: {
    50: '#7785c5',
    500: '#2d56ab',
    950: '#000000',
  },
}
SCSS
$custom: #2d56ab;
$custom-light: #7785c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d56ab",
  "rgb": {
    "r": 45,
    "g": 86,
    "b": 171
  },
  "hsl": {
    "h": 220.476,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47191,
    "c": 0.14409,
    "h": 262.8
  },
  "luminance": 0.10154
}

Semantic roles & 50–950 ramp

primary
#2D56AB
secondary
#C3A871
accent
#AF46E2
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2D56AB

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

Preview Lab → · Contrast checker → · Palette generator →

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