#2F57A4#2F57A4

#2F57A4 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.0% C 0.132 H 262.0°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#2F57A4
RGBrgb(47, 87, 164)
HSLhsl(219, 55%, 41%)
HSVhsv(219, 71%, 64%)
CMYKcmyk(71.3%, 47%, 0%, 35.7%)
CIE-LABlab(38.02, 12.85, -45.76)
CIE-LCHlch(38.02, 47.53, 285.69°)
OKLaboklab(46.99% -0.0185 -0.1311)
OKLCHoklch(46.99% 0.132 262)
XYZxyz(11.2789, 10.0999, 36.4698)
Luminance0.1010 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F57A4 #A47C2F
analogous
#2F92A4 #2F57A4 #422FA4
triadic
#2F57A4 #A42F57 #57A42F
tetradic
#2F57A4 #A42F92 #A47C2F #2FA442
square
#2F57A4 #A42F92 #A47C2F #2FA442
split-complementary
#2F57A4 #A4422F #92A42F
monochromatic
#142545 #213E74 #2F57A4 #4673CA #7697D8

Accessibility & contrast

On white

6.95
#2F57A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#2F57A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F57A4
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F57A4#FFFFFF#000000##FFFFFF
##2F57A41.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5FA7
Deuteranopia (green-blind)
#1654A2
Tritanopia (blue-blind)
#006975
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2f57a4;
/* rgb */ color: rgb(47, 87, 164);
/* oklch */ color: oklch(47.0% 0.132 262.0);
Tailwind
colors: {
  custom: {
    50: '#7685bf',
    500: '#2f57a4',
    950: '#000000',
  },
}
SCSS
$custom: #2f57a4;
$custom-light: #7685bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f57a4",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 164
  },
  "hsl": {
    "h": 219.487,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46994,
    "c": 0.13238,
    "h": 262
  },
  "luminance": 0.10101
}

Semantic roles & 50–950 ramp

primary
#2F57A4
secondary
#C0A46F
accent
#AC49DF
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2F57A4

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

Preview Lab → · Contrast checker → · Palette generator →

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