#2A56B5#2A56B5

#2A56B5 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.8% C 0.159 H 263.1°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#2A56B5
RGBrgb(42, 86, 181)
HSLhsl(221, 62%, 44%)
HSVhsv(221, 77%, 71%)
CMYKcmyk(76.8%, 52.5%, 0%, 29%)
CIE-LABlab(38.70, 19.33, -54.75)
CIE-LCHlch(38.70, 58.06, 289.44°)
OKLaboklab(47.82% -0.0192 -0.1576)
OKLCHoklch(47.82% 0.159 263.1)
XYZxyz(12.6201, 10.4826, 45.0653)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A56B5 #B5892A
analogous
#2A9BB5 #2A56B5 #432AB5
triadic
#2A56B5 #B52A56 #56B52A
tetradic
#2A56B5 #B52A9B #B5892A #2AB543
square
#2A56B5 #B52A9B #B5892A #2AB543
split-complementary
#2A56B5 #B5432A #9BB52A
monochromatic
#132752 #1E3E83 #2A56B5 #4874D4 #799AE0

Accessibility & contrast

On white

6.78
#2A56B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#2A56B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A56B5
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A56B5#FFFFFF#000000##FFFFFF
##2A56B51.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1462B8
Deuteranopia (green-blind)
#0055B3
Tritanopia (blue-blind)
#006D7D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2a56b5;
/* rgb */ color: rgb(42, 86, 181);
/* oklch */ color: oklch(47.8% 0.159 263.1);
Tailwind
colors: {
  custom: {
    50: '#7885cc',
    500: '#2a56b5',
    950: '#000000',
  },
}
SCSS
$custom: #2a56b5;
$custom-light: #7885cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a56b5",
  "rgb": {
    "r": 42,
    "g": 86,
    "b": 181
  },
  "hsl": {
    "h": 221.007,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47823,
    "c": 0.1588,
    "h": 263.1
  },
  "luminance": 0.10484
}

Semantic roles & 50–950 ramp

primary
#2A56B5
secondary
#C8AD73
accent
#B242E5
background
#F7F8FC
surface
#EEEFF9
border
#C9CAD2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A56B5

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

Preview Lab → · Contrast checker → · Palette generator →

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