#2F56AE#2F56AE

#2F56AE is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.5% C 0.148 H 263.7°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#2F56AE
RGBrgb(47, 86, 174)
HSLhsl(222, 57%, 43%)
HSVhsv(222, 73%, 68%)
CMYKcmyk(73%, 50.6%, 0%, 31.8%)
CIE-LABlab(38.40, 17.30, -51.08)
CIE-LCHlch(38.40, 53.93, 288.71°)
OKLaboklab(47.5% -0.0161 -0.1468)
OKLCHoklch(47.5% 0.148 263.7)
XYZxyz(12.1374, 10.3146, 41.3874)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F56AE #AE872F
analogous
#2F95AE #2F56AE #472FAE
triadic
#2F56AE #AE2F56 #56AE2F
tetradic
#2F56AE #AE2F95 #AE872F #2FAE47
square
#2F56AE #AE2F95 #AE872F #2FAE47
split-complementary
#2F56AE #AE472F #95AE2F
monochromatic
#15264E #223E7E #2F56AE #4C74CF #7C99DC

Accessibility & contrast

On white

6.86
#2F56AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#2F56AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F56AE
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F56AE#FFFFFF#000000##FFFFFF
##2F56AE1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2161B1
Deuteranopia (green-blind)
#0055AC
Tritanopia (blue-blind)
#006B7A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2f56ae;
/* rgb */ color: rgb(47, 86, 174);
/* oklch */ color: oklch(47.5% 0.148 263.7);
Tailwind
colors: {
  custom: {
    50: '#7885c7',
    500: '#2f56ae',
    950: '#000000',
  },
}
SCSS
$custom: #2f56ae;
$custom-light: #7885c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f56ae",
  "rgb": {
    "r": 47,
    "g": 86,
    "b": 174
  },
  "hsl": {
    "h": 221.575,
    "s": 57.466,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47498,
    "c": 0.14765,
    "h": 263.7
  },
  "luminance": 0.10316
}

Semantic roles & 50–950 ramp

primary
#2F56AE
secondary
#C4AC75
accent
#B247E1
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F56AE

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

Preview Lab → · Contrast checker → · Palette generator →

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