#2F57BF#2F57BF

#2F57BF is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.0% C 0.170 H 264.9°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#2F57BF
RGBrgb(47, 87, 191)
HSLhsl(223, 61%, 47%)
HSVhsv(223, 75%, 75%)
CMYKcmyk(75.4%, 54.5%, 0%, 25.1%)
CIE-LABlab(39.88, 23.06, -58.67)
CIE-LCHlch(39.88, 63.04, 291.46°)
OKLaboklab(49.01% -0.0152 -0.1691)
OKLCHoklch(49.01% 0.17 264.9)
XYZxyz(13.9811, 11.1808, 50.7014)
Luminance0.1118 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F57BF #BF972F
analogous
#2F9FBF #2F57BF #4F2FBF
triadic
#2F57BF #BF2F57 #57BF2F
tetradic
#2F57BF #BF2F9F #BF972F #2FBF4F
square
#2F57BF #BF2F9F #BF972F #2FBF4F
split-complementary
#2F57BF #BF4F2F #9FBF2F
monochromatic
#172A5D #23418E #2F57BF #5679D5 #87A0E1

Accessibility & contrast

On white

6.49
#2F57BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#2F57BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F57BF
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F57BF#FFFFFF#000000##FFFFFF
##2F57BF1.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C3
Deuteranopia (green-blind)
#0058BD
Tritanopia (blue-blind)
#007082
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2f57bf;
/* rgb */ color: rgb(47, 87, 191);
/* oklch */ color: oklch(49.0% 0.170 264.9);
Tailwind
colors: {
  custom: {
    50: '#7c85d3',
    500: '#2f57bf',
    950: '#000000',
  },
}
SCSS
$custom: #2f57bf;
$custom-light: #7c85d3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f57bf",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 191
  },
  "hsl": {
    "h": 223.333,
    "s": 60.504,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49006,
    "c": 0.16976,
    "h": 264.9
  },
  "luminance": 0.11182
}

Semantic roles & 50–950 ramp

primary
#2F57BF
secondary
#CBB67F
accent
#B744E4
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2F57BF

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

Preview Lab → · Contrast checker → · Palette generator →

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