#2F56A8#2F56A8

#2F56A8 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.1% C 0.139 H 263.0°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#2F56A8
RGBrgb(47, 86, 168)
HSLhsl(221, 56%, 42%)
HSVhsv(221, 72%, 66%)
CMYKcmyk(72%, 48.8%, 0%, 34.1%)
CIE-LABlab(38.00, 15.03, -48.18)
CIE-LCHlch(38.00, 50.47, 287.32°)
OKLaboklab(47.06% -0.0169 -0.1382)
OKLCHoklch(47.06% 0.139 263)
XYZxyz(11.5655, 10.0859, 38.3754)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F56A8 #A8812F
analogous
#2F93A8 #2F56A8 #442FA8
triadic
#2F56A8 #A82F56 #56A82F
tetradic
#2F56A8 #A82F93 #A8812F #2FA844
square
#2F56A8 #A82F93 #A8812F #2FA844
split-complementary
#2F56A8 #A8442F #93A82F
monochromatic
#142548 #223E78 #2F56A8 #4873CC #7897D9

Accessibility & contrast

On white

6.96
#2F56A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#2F56A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F56A8
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F56A8#FFFFFF#000000##FFFFFF
##2F56A81.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295FAB
Deuteranopia (green-blind)
#0454A6
Tritanopia (blue-blind)
#006977
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2f56a8;
/* rgb */ color: rgb(47, 86, 168);
/* oklch */ color: oklch(47.1% 0.139 263.0);
Tailwind
colors: {
  custom: {
    50: '#7785c2',
    500: '#2f56a8',
    950: '#000000',
  },
}
SCSS
$custom: #2f56a8;
$custom-light: #7785c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f56a8",
  "rgb": {
    "r": 47,
    "g": 86,
    "b": 168
  },
  "hsl": {
    "h": 220.661,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47059,
    "c": 0.13926,
    "h": 263
  },
  "luminance": 0.10087
}

Semantic roles & 50–950 ramp

primary
#2F56A8
secondary
#C1A871
accent
#AF48E0
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2F56A8

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

Preview Lab → · Contrast checker → · Palette generator →

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