#2F57A6#2F57A6

#2F57A6 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.1% C 0.135 H 262.3°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#2F57A6
RGBrgb(47, 87, 166)
HSLhsl(220, 56%, 42%)
HSVhsv(220, 72%, 65%)
CMYKcmyk(71.7%, 47.6%, 0%, 34.9%)
CIE-LABlab(38.15, 13.61, -46.74)
CIE-LCHlch(38.15, 48.68, 286.24°)
OKLaboklab(47.14% -0.0181 -0.134)
OKLCHoklch(47.14% 0.135 262.3)
XYZxyz(11.4610, 10.1727, 37.4285)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F57A6 #A67E2F
analogous
#2F93A6 #2F57A6 #432FA6
triadic
#2F57A6 #A62F57 #57A62F
tetradic
#2F57A6 #A62F93 #A67E2F #2FA643
square
#2F57A6 #A62F93 #A67E2F #2FA643
split-complementary
#2F57A6 #A6432F #93A62F
monochromatic
#142547 #213E76 #2F57A6 #4774CB #7798D8

Accessibility & contrast

On white

6.92
#2F57A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F57A6
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F57A6#FFFFFF#000000##FFFFFF
##2F57A61.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D60A9
Deuteranopia (green-blind)
#1155A4
Tritanopia (blue-blind)
#006A76
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2f57a6;
/* rgb */ color: rgb(47, 87, 166);
/* oklch */ color: oklch(47.1% 0.135 262.3);
Tailwind
colors: {
  custom: {
    50: '#7785c1',
    500: '#2f57a6',
    950: '#000000',
  },
}
SCSS
$custom: #2f57a6;
$custom-light: #7785c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f57a6",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 166
  },
  "hsl": {
    "h": 219.832,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47135,
    "c": 0.1352,
    "h": 262.3
  },
  "luminance": 0.10174
}

Semantic roles & 50–950 ramp

primary
#2F57A6
secondary
#C1A670
accent
#AD49DF
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2F57A6

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

Preview Lab → · Contrast checker → · Palette generator →

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