#2F56AB#2F56AB

#2F56AB is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.3% C 0.143 H 263.4°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#2F56AB
RGBrgb(47, 86, 171)
HSLhsl(221, 57%, 43%)
HSVhsv(221, 73%, 67%)
CMYKcmyk(72.5%, 49.7%, 0%, 32.9%)
CIE-LABlab(38.20, 16.16, -49.63)
CIE-LCHlch(38.20, 52.20, 288.04°)
OKLaboklab(47.28% -0.0165 -0.1425)
OKLCHoklch(47.28% 0.143 263.4)
XYZxyz(11.8482, 10.1989, 39.8644)
Luminance0.1020 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F56AB #AB842F
analogous
#2F94AB #2F56AB #462FAB
triadic
#2F56AB #AB2F56 #56AB2F
tetradic
#2F56AB #AB2F94 #AB842F #2FAB46
square
#2F56AB #AB2F94 #AB842F #2FAB46
split-complementary
#2F56AB #AB462F #94AB2F
monochromatic
#15264B #223E7B #2F56AB #4A73CD #7A98DA

Accessibility & contrast

On white

6.91
#2F56AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#2F56AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F56AB
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F56AB#FFFFFF#000000##FFFFFF
##2F56AB1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2560AE
Deuteranopia (green-blind)
#0055A9
Tritanopia (blue-blind)
#006A78
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2f56ab;
/* rgb */ color: rgb(47, 86, 171);
/* oklch */ color: oklch(47.3% 0.143 263.4);
Tailwind
colors: {
  custom: {
    50: '#7885c5',
    500: '#2f56ab',
    950: '#000000',
  },
}
SCSS
$custom: #2f56ab;
$custom-light: #7885c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f56ab",
  "rgb": {
    "r": 47,
    "g": 86,
    "b": 171
  },
  "hsl": {
    "h": 221.129,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.47277,
    "c": 0.14347,
    "h": 263.4
  },
  "luminance": 0.102
}

Semantic roles & 50–950 ramp

primary
#2F56AB
secondary
#C3AA73
accent
#B048E0
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F56AB

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

Preview Lab → · Contrast checker → · Palette generator →

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