#2F57AE#2F57AE

#2F57AE is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.7% C 0.146 H 263.3°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#2F57AE
RGBrgb(47, 87, 174)
HSLhsl(221, 57%, 43%)
HSVhsv(221, 73%, 68%)
CMYKcmyk(73%, 50%, 0%, 31.8%)
CIE-LABlab(38.68, 16.64, -50.63)
CIE-LCHlch(38.68, 53.29, 288.20°)
OKLaboklab(47.71% -0.017 -0.1454)
OKLCHoklch(47.71% 0.146 263.3)
XYZxyz(12.2178, 10.4754, 41.4142)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F57AE #AE862F
analogous
#2F96AE #2F57AE #462FAE
triadic
#2F57AE #AE2F57 #57AE2F
tetradic
#2F57AE #AE2F96 #AE862F #2FAE46
square
#2F57AE #AE2F96 #AE862F #2FAE46
split-complementary
#2F57AE #AE462F #96AE2F
monochromatic
#15274E #223F7E #2F57AE #4C75CF #7C9ADC

Accessibility & contrast

On white

6.78
#2F57AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#2F57AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F57AE
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F57AE#FFFFFF#000000##FFFFFF
##2F57AE1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2461B1
Deuteranopia (green-blind)
#0056AC
Tritanopia (blue-blind)
#006C7A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f57ae;
/* rgb */ color: rgb(47, 87, 174);
/* oklch */ color: oklch(47.7% 0.146 263.3);
Tailwind
colors: {
  custom: {
    50: '#7885c7',
    500: '#2f57ae',
    950: '#000000',
  },
}
SCSS
$custom: #2f57ae;
$custom-light: #7885c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f57ae",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 174
  },
  "hsl": {
    "h": 221.102,
    "s": 57.466,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47712,
    "c": 0.14641,
    "h": 263.3
  },
  "luminance": 0.10477
}

Semantic roles & 50–950 ramp

primary
#2F57AE
secondary
#C4AB75
accent
#B047E1
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F57AE

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

Preview Lab → · Contrast checker → · Palette generator →

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