#2D56B2#2D56B2

#2D56B2 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.7% C 0.154 H 263.6°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#2D56B2
RGBrgb(45, 86, 178)
HSLhsl(222, 60%, 44%)
HSVhsv(222, 75%, 70%)
CMYKcmyk(74.7%, 51.7%, 0%, 30.2%)
CIE-LABlab(38.60, 18.55, -53.13)
CIE-LCHlch(38.60, 56.28, 289.25°)
OKLaboklab(47.71% -0.0172 -0.1528)
OKLCHoklch(47.71% 0.154 263.6)
XYZxyz(12.4430, 10.4265, 43.4676)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D56B2 #B2892D
analogous
#2D98B2 #2D56B2 #462DB2
triadic
#2D56B2 #B22D56 #56B22D
tetradic
#2D56B2 #B22D98 #B2892D #2DB246
square
#2D56B2 #B22D98 #B2892D #2DB246
split-complementary
#2D56B2 #B2462D #98B22D
monochromatic
#142750 #213E81 #2D56B2 #4B74D1 #7C9ADE

Accessibility & contrast

On white

6.81
#2D56B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#2D56B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D56B2
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D56B2#FFFFFF#000000##FFFFFF
##2D56B21.006.813.096.81
#FFFFFF6.811.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B61B5
Deuteranopia (green-blind)
#0055B0
Tritanopia (blue-blind)
#006C7B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2d56b2;
/* rgb */ color: rgb(45, 86, 178);
/* oklch */ color: oklch(47.7% 0.154 263.6);
Tailwind
colors: {
  custom: {
    50: '#7985ca',
    500: '#2d56b2',
    950: '#000000',
  },
}
SCSS
$custom: #2d56b2;
$custom-light: #7985ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2d56b2",
  "rgb": {
    "r": 45,
    "g": 86,
    "b": 178
  },
  "hsl": {
    "h": 221.504,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47713,
    "c": 0.15381,
    "h": 263.6
  },
  "luminance": 0.10428
}

Semantic roles & 50–950 ramp

primary
#2D56B2
secondary
#C6AD75
accent
#B245E3
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2D56B2

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

Preview Lab → · Contrast checker → · Palette generator →

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