#2F57AB#2F57AB

#2F57AB is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.5% C 0.142 H 263.0°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#2F57AB
RGBrgb(47, 87, 171)
HSLhsl(221, 57%, 43%)
HSVhsv(221, 73%, 67%)
CMYKcmyk(72.5%, 49.1%, 0%, 32.9%)
CIE-LABlab(38.48, 15.50, -49.18)
CIE-LCHlch(38.48, 51.56, 287.50°)
OKLaboklab(47.49% -0.0174 -0.1411)
OKLCHoklch(47.49% 0.142 263)
XYZxyz(11.9286, 10.3597, 39.8912)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F57AB #AB832F
analogous
#2F95AB #2F57AB #452FAB
triadic
#2F57AB #AB2F57 #57AB2F
tetradic
#2F57AB #AB2F95 #AB832F #2FAB45
square
#2F57AB #AB2F95 #AB832F #2FAB45
split-complementary
#2F57AB #AB452F #95AB2F
monochromatic
#15264B #223F7B #2F57AB #4A74CD #7A99DA

Accessibility & contrast

On white

6.84
#2F57AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#2F57AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F57AB
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F57AB#FFFFFF#000000##FFFFFF
##2F57AB1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2861AE
Deuteranopia (green-blind)
#0055A9
Tritanopia (blue-blind)
#006B79
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f57ab;
/* rgb */ color: rgb(47, 87, 171);
/* oklch */ color: oklch(47.5% 0.142 263.0);
Tailwind
colors: {
  custom: {
    50: '#7885c5',
    500: '#2f57ab',
    950: '#000000',
  },
}
SCSS
$custom: #2f57ab;
$custom-light: #7885c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f57ab",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 171
  },
  "hsl": {
    "h": 220.645,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.47493,
    "c": 0.14222,
    "h": 263
  },
  "luminance": 0.10361
}

Semantic roles & 50–950 ramp

primary
#2F57AB
secondary
#C3A973
accent
#AF48E0
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F57AB

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

Preview Lab → · Contrast checker → · Palette generator →

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