#2F56A5#2F56A5

#2F56A5 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 46.8% C 0.135 H 262.6°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#2F56A5
RGBrgb(47, 86, 165)
HSLhsl(220, 56%, 42%)
HSVhsv(220, 72%, 65%)
CMYKcmyk(71.5%, 47.9%, 0%, 35.3%)
CIE-LABlab(37.80, 13.89, -46.71)
CIE-LCHlch(37.80, 48.73, 286.56°)
OKLaboklab(46.84% -0.0174 -0.1339)
OKLCHoklch(46.84% 0.135 262.6)
XYZxyz(11.2892, 9.9753, 36.9205)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F56A5 #A57E2F
analogous
#2F91A5 #2F56A5 #432FA5
triadic
#2F56A5 #A52F56 #56A52F
tetradic
#2F56A5 #A52F91 #A57E2F #2FA543
square
#2F56A5 #A52F91 #A57E2F #2FA543
split-complementary
#2F56A5 #A5432F #91A52F
monochromatic
#142446 #213D75 #2F56A5 #4772CB #7697D8

Accessibility & contrast

On white

7.01
#2F56A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#2F56A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F56A5
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F56A5#FFFFFF#000000##FFFFFF
##2F56A51.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5FA8
Deuteranopia (green-blind)
#0F54A3
Tritanopia (blue-blind)
#006975
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2f56a5;
/* rgb */ color: rgb(47, 86, 165);
/* oklch */ color: oklch(46.8% 0.135 262.6);
Tailwind
colors: {
  custom: {
    50: '#7685c0',
    500: '#2f56a5',
    950: '#000000',
  },
}
SCSS
$custom: #2f56a5;
$custom-light: #7685c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f56a5",
  "rgb": {
    "r": 47,
    "g": 86,
    "b": 165
  },
  "hsl": {
    "h": 220.169,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.46843,
    "c": 0.13503,
    "h": 262.6
  },
  "luminance": 0.09977
}

Semantic roles & 50–950 ramp

primary
#2F56A5
secondary
#C0A670
accent
#AD49DF
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2F56A5

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

Preview Lab → · Contrast checker → · Palette generator →

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