#2F56A7#2F56A7

#2F56A7 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.0% C 0.138 H 262.9°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#2F56A7
RGBrgb(47, 86, 167)
HSLhsl(221, 56%, 42%)
HSVhsv(221, 72%, 65%)
CMYKcmyk(71.9%, 48.5%, 0%, 34.5%)
CIE-LABlab(37.93, 14.65, -47.69)
CIE-LCHlch(37.93, 49.89, 287.07°)
OKLaboklab(46.99% -0.0171 -0.1368)
OKLCHoklch(46.99% 0.138 262.9)
XYZxyz(11.4727, 10.0487, 37.8867)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F56A7 #A7802F
analogous
#2F92A7 #2F56A7 #442FA7
triadic
#2F56A7 #A72F56 #56A72F
tetradic
#2F56A7 #A72F92 #A7802F #2FA744
square
#2F56A7 #A72F92 #A7802F #2FA744
split-complementary
#2F56A7 #A7442F #92A72F
monochromatic
#142547 #223D77 #2F56A7 #4873CB #7897D9

Accessibility & contrast

On white

6.98
#2F56A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#2F56A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F56A7
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F56A7#FFFFFF#000000##FFFFFF
##2F56A71.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5FAA
Deuteranopia (green-blind)
#0854A5
Tritanopia (blue-blind)
#006976
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2f56a7;
/* rgb */ color: rgb(47, 86, 167);
/* oklch */ color: oklch(47.0% 0.138 262.9);
Tailwind
colors: {
  custom: {
    50: '#7785c2',
    500: '#2f56a7',
    950: '#000000',
  },
}
SCSS
$custom: #2f56a7;
$custom-light: #7785c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f56a7",
  "rgb": {
    "r": 47,
    "g": 86,
    "b": 167
  },
  "hsl": {
    "h": 220.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.46987,
    "c": 0.13785,
    "h": 262.9
  },
  "luminance": 0.1005
}

Semantic roles & 50–950 ramp

primary
#2F56A7
secondary
#C1A771
accent
#AE48DF
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2F56A7

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

Preview Lab → · Contrast checker → · Palette generator →

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