#2F57BC#2F57BC

#2F57BC is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.8% C 0.166 H 264.6°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#2F57BC
RGBrgb(47, 87, 188)
HSLhsl(223, 60%, 46%)
HSVhsv(223, 75%, 74%)
CMYKcmyk(75%, 53.7%, 0%, 26.3%)
CIE-LABlab(39.66, 21.93, -57.27)
CIE-LCHlch(39.66, 61.33, 290.96°)
OKLaboklab(48.77% -0.0155 -0.165)
OKLCHoklch(48.77% 0.166 264.6)
XYZxyz(13.6544, 11.0501, 48.9805)
Luminance0.1105 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F57BC #BC942F
analogous
#2F9DBC #2F57BC #4D2FBC
triadic
#2F57BC #BC2F57 #57BC2F
tetradic
#2F57BC #BC2F9D #BC942F #2FBC4D
square
#2F57BC #BC2F9D #BC942F #2FBC4D
split-complementary
#2F57BC #BC4D2F #9DBC2F
monochromatic
#172A5A #23408B #2F57BC #5478D4 #859FE0

Accessibility & contrast

On white

6.54
#2F57BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#2F57BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F57BC
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F57BC#FFFFFF#000000##FFFFFF
##2F57BC1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0564C0
Deuteranopia (green-blind)
#0057BA
Tritanopia (blue-blind)
#007081
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2f57bc;
/* rgb */ color: rgb(47, 87, 188);
/* oklch */ color: oklch(48.8% 0.166 264.6);
Tailwind
colors: {
  custom: {
    50: '#7b85d1',
    500: '#2f57bc',
    950: '#000000',
  },
}
SCSS
$custom: #2f57bc;
$custom-light: #7b85d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f57bc",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 188
  },
  "hsl": {
    "h": 222.979,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.48771,
    "c": 0.16569,
    "h": 264.6
  },
  "luminance": 0.11052
}

Semantic roles & 50–950 ramp

primary
#2F57BC
secondary
#CAB47D
accent
#B645E3
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2F57BC

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

Preview Lab → · Contrast checker → · Palette generator →

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