#2A56AF#2A56AF

#2A56AF is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.4% C 0.151 H 262.4°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#2A56AF
RGBrgb(42, 86, 175)
HSLhsl(220, 61%, 43%)
HSVhsv(220, 76%, 69%)
CMYKcmyk(76%, 50.9%, 0%, 31.4%)
CIE-LABlab(38.27, 17.02, -51.89)
CIE-LCHlch(38.27, 54.61, 288.16°)
OKLaboklab(47.37% -0.0199 -0.1492)
OKLCHoklch(47.37% 0.151 262.4)
XYZxyz(12.0177, 10.2416, 41.8926)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A56AF #AF832A
analogous
#2A99AF #2A56AF #402AAF
triadic
#2A56AF #AF2A56 #56AF2A
tetradic
#2A56AF #AF2A99 #AF832A #2AAF40
square
#2A56AF #AF2A99 #AF832A #2AAF40
split-complementary
#2A56AF #AF402A #99AF2A
monochromatic
#12254C #1E3E7E #2A56AF #4473D2 #7598DE

Accessibility & contrast

On white

6.89
#2A56AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#2A56AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A56AF
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A56AF#FFFFFF#000000##FFFFFF
##2A56AF1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F61B2
Deuteranopia (green-blind)
#0054AD
Tritanopia (blue-blind)
#006B7A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2a56af;
/* rgb */ color: rgb(42, 86, 175);
/* oklch */ color: oklch(47.4% 0.151 262.4);
Tailwind
colors: {
  custom: {
    50: '#7785c7',
    500: '#2a56af',
    950: '#000000',
  },
}
SCSS
$custom: #2a56af;
$custom-light: #7785c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a56af",
  "rgb": {
    "r": 42,
    "g": 86,
    "b": 175
  },
  "hsl": {
    "h": 220.15,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47367,
    "c": 0.15056,
    "h": 262.4
  },
  "luminance": 0.10243
}

Semantic roles & 50–950 ramp

primary
#2A56AF
secondary
#C6A96F
accent
#AF43E4
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A56AF

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

Preview Lab → · Contrast checker → · Palette generator →

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