#2F57A7#2F57A7

#2F57A7 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.2% C 0.137 H 262.4°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#2F57A7
RGBrgb(47, 87, 167)
HSLhsl(220, 56%, 42%)
HSVhsv(220, 72%, 65%)
CMYKcmyk(71.9%, 47.9%, 0%, 34.5%)
CIE-LABlab(38.22, 13.99, -47.23)
CIE-LCHlch(38.22, 49.26, 286.50°)
OKLaboklab(47.21% -0.018 -0.1354)
OKLCHoklch(47.21% 0.137 262.4)
XYZxyz(11.5531, 10.2095, 37.9135)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F57A7 #A77F2F
analogous
#2F93A7 #2F57A7 #432FA7
triadic
#2F57A7 #A72F57 #57A72F
tetradic
#2F57A7 #A72F93 #A77F2F #2FA743
square
#2F57A7 #A72F93 #A77F2F #2FA743
split-complementary
#2F57A7 #A7432F #93A72F
monochromatic
#142547 #223E77 #2F57A7 #4874CB #7898D9

Accessibility & contrast

On white

6.90
#2F57A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#2F57A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F57A7
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F57A7#FFFFFF#000000##FFFFFF
##2F57A71.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C60AA
Deuteranopia (green-blind)
#0E55A5
Tritanopia (blue-blind)
#006A77
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2f57a7;
/* rgb */ color: rgb(47, 87, 167);
/* oklch */ color: oklch(47.2% 0.137 262.4);
Tailwind
colors: {
  custom: {
    50: '#7785c2',
    500: '#2f57a7',
    950: '#000000',
  },
}
SCSS
$custom: #2f57a7;
$custom-light: #7785c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f57a7",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 167
  },
  "hsl": {
    "h": 220,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47206,
    "c": 0.13661,
    "h": 262.4
  },
  "luminance": 0.10211
}

Semantic roles & 50–950 ramp

primary
#2F57A7
secondary
#C1A671
accent
#AD48DF
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2F57A7

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

Preview Lab → · Contrast checker → · Palette generator →

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