#2F57AC#2F57AC

#2F57AC is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.6% C 0.144 H 263.1°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#2F57AC
RGBrgb(47, 87, 172)
HSLhsl(221, 57%, 43%)
HSVhsv(221, 73%, 67%)
CMYKcmyk(72.7%, 49.4%, 0%, 32.5%)
CIE-LABlab(38.55, 15.88, -49.66)
CIE-LCHlch(38.55, 52.14, 287.74°)
OKLaboklab(47.57% -0.0173 -0.1426)
OKLCHoklch(47.57% 0.144 263.1)
XYZxyz(12.0242, 10.3980, 40.3950)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F57AC #AC842F
analogous
#2F95AC #2F57AC #452FAC
triadic
#2F57AC #AC2F57 #57AC2F
tetradic
#2F57AC #AC2F95 #AC842F #2FAC45
square
#2F57AC #AC2F95 #AC842F #2FAC45
split-complementary
#2F57AC #AC452F #95AC2F
monochromatic
#15264C #223F7C #2F57AC #4B74CE #7B99DB

Accessibility & contrast

On white

6.82
#2F57AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#2F57AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F57AC
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F57AC#FFFFFF#000000##FFFFFF
##2F57AC1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2761AF
Deuteranopia (green-blind)
#0055AA
Tritanopia (blue-blind)
#006B79
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f57ac;
/* rgb */ color: rgb(47, 87, 172);
/* oklch */ color: oklch(47.6% 0.144 263.1);
Tailwind
colors: {
  custom: {
    50: '#7885c5',
    500: '#2f57ac',
    950: '#000000',
  },
}
SCSS
$custom: #2f57ac;
$custom-light: #7885c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f57ac",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 172
  },
  "hsl": {
    "h": 220.8,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47566,
    "c": 0.14362,
    "h": 263.1
  },
  "luminance": 0.10399
}

Semantic roles & 50–950 ramp

primary
#2F57AC
secondary
#C3AA74
accent
#AF47E0
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F57AC

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

Preview Lab → · Contrast checker → · Palette generator →

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