#2F57BE#2F57BE

#2F57BE is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.9% C 0.168 H 264.8°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#2F57BE
RGBrgb(47, 87, 190)
HSLhsl(223, 60%, 46%)
HSVhsv(223, 75%, 75%)
CMYKcmyk(75.3%, 54.2%, 0%, 25.5%)
CIE-LABlab(39.81, 22.69, -58.20)
CIE-LCHlch(39.81, 62.47, 291.30°)
OKLaboklab(48.93% -0.0153 -0.1677)
OKLCHoklch(48.93% 0.168 264.8)
XYZxyz(13.8715, 11.1369, 50.1238)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F57BE #BE962F
analogous
#2F9FBE #2F57BE #4F2FBE
triadic
#2F57BE #BE2F57 #57BE2F
tetradic
#2F57BE #BE2F9F #BE962F #2FBE4F
square
#2F57BE #BE2F9F #BE962F #2FBE4F
split-complementary
#2F57BE #BE4F2F #9FBE2F
monochromatic
#172A5C #23418D #2F57BE #5579D5 #86A0E1

Accessibility & contrast

On white

6.51
#2F57BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#2F57BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F57BE
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F57BE#FFFFFF#000000##FFFFFF
##2F57BE1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f57be;
/* rgb */ color: rgb(47, 87, 190);
/* oklch */ color: oklch(48.9% 0.168 264.8);
Tailwind
colors: {
  custom: {
    50: '#7c85d2',
    500: '#2f57be',
    950: '#000000',
  },
}
SCSS
$custom: #2f57be;
$custom-light: #7c85d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f57be",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 190
  },
  "hsl": {
    "h": 223.217,
    "s": 60.338,
    "l": 46.471
  },
  "oklch": {
    "l": 0.48927,
    "c": 0.16841,
    "h": 264.8
  },
  "luminance": 0.11138
}

Semantic roles & 50–950 ramp

primary
#2F57BE
secondary
#CBB57E
accent
#B744E3
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2F57BE

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

Preview Lab → · Contrast checker → · Palette generator →

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