#2F56AA#2F56AA

#2F56AA is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.2% C 0.142 H 263.3°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#2F56AA
RGBrgb(47, 86, 170)
HSLhsl(221, 57%, 43%)
HSVhsv(221, 72%, 67%)
CMYKcmyk(72.4%, 49.4%, 0%, 33.3%)
CIE-LABlab(38.13, 15.78, -49.15)
CIE-LCHlch(38.13, 51.62, 287.80°)
OKLaboklab(47.2% -0.0166 -0.1411)
OKLCHoklch(47.2% 0.142 263.3)
XYZxyz(11.7532, 10.1610, 39.3643)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F56AA #AA832F
analogous
#2F93AA #2F56AA #462FAA
triadic
#2F56AA #AA2F56 #56AA2F
tetradic
#2F56AA #AA2F93 #AA832F #2FAA46
square
#2F56AA #AA2F93 #AA832F #2FAA46
split-complementary
#2F56AA #AA462F #93AA2F
monochromatic
#14254A #223E7A #2F56AA #4973CD #7998DA

Accessibility & contrast

On white

6.93
#2F56AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#2F56AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F56AA
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F56AA#FFFFFF#000000##FFFFFF
##2F56AA1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2760AD
Deuteranopia (green-blind)
#0054A8
Tritanopia (blue-blind)
#006A78
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2f56aa;
/* rgb */ color: rgb(47, 86, 170);
/* oklch */ color: oklch(47.2% 0.142 263.3);
Tailwind
colors: {
  custom: {
    50: '#7885c4',
    500: '#2f56aa',
    950: '#000000',
  },
}
SCSS
$custom: #2f56aa;
$custom-light: #7885c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f56aa",
  "rgb": {
    "r": 47,
    "g": 86,
    "b": 170
  },
  "hsl": {
    "h": 220.976,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47204,
    "c": 0.14207,
    "h": 263.3
  },
  "luminance": 0.10162
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F56AA

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

Preview Lab → · Contrast checker → · Palette generator →

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