#2F56A4#2F56A4

#2F56A4 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.8% C 0.134 H 262.5°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#2F56A4
RGBrgb(47, 86, 164)
HSLhsl(220, 55%, 41%)
HSVhsv(220, 71%, 64%)
CMYKcmyk(71.3%, 47.6%, 0%, 35.7%)
CIE-LABlab(37.73, 13.51, -46.22)
CIE-LCHlch(37.73, 48.15, 286.30°)
OKLaboklab(46.77% -0.0175 -0.1325)
OKLCHoklch(46.77% 0.134 262.5)
XYZxyz(11.1985, 9.9391, 36.4430)
Luminance0.0994 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F56A4 #A47D2F
analogous
#2F91A4 #2F56A4 #432FA4
triadic
#2F56A4 #A42F56 #56A42F
tetradic
#2F56A4 #A42F91 #A47D2F #2FA443
square
#2F56A4 #A42F91 #A47D2F #2FA443
split-complementary
#2F56A4 #A4432F #91A42F
monochromatic
#142445 #213D74 #2F56A4 #4672CA #7696D8

Accessibility & contrast

On white

7.03
#2F56A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#2F56A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F56A4
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F56A4#FFFFFF#000000##FFFFFF
##2F56A41.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5FA7
Deuteranopia (green-blind)
#1254A2
Tritanopia (blue-blind)
#006875
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2f56a4;
/* rgb */ color: rgb(47, 86, 164);
/* oklch */ color: oklch(46.8% 0.134 262.5);
Tailwind
colors: {
  custom: {
    50: '#7685bf',
    500: '#2f56a4',
    950: '#000000',
  },
}
SCSS
$custom: #2f56a4;
$custom-light: #7685bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f56a4",
  "rgb": {
    "r": 47,
    "g": 86,
    "b": 164
  },
  "hsl": {
    "h": 220,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46772,
    "c": 0.13361,
    "h": 262.5
  },
  "luminance": 0.0994
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F56A4

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

Preview Lab → · Contrast checker → · Palette generator →

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