#2F57C4#2F57C4

#2F57C4 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.4% C 0.176 H 265.2°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#2F57C4
RGBrgb(47, 87, 196)
HSLhsl(224, 61%, 48%)
HSVhsv(224, 76%, 77%)
CMYKcmyk(76%, 55.6%, 0%, 23.1%)
CIE-LABlab(40.25, 24.94, -60.98)
CIE-LCHlch(40.25, 65.88, 292.25°)
OKLaboklab(49.4% -0.0149 -0.1759)
OKLCHoklch(49.4% 0.177 265.2)
XYZxyz(14.5408, 11.4046, 53.6488)
Luminance0.1141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F57C4 #C49C2F
analogous
#2FA1C4 #2F57C4 #522FC4
triadic
#2F57C4 #C42F57 #57C42F
tetradic
#2F57C4 #C42FA1 #C49C2F #2FC452
square
#2F57C4 #C42FA1 #C49C2F #2FC452
split-complementary
#2F57C4 #C4522F #A1C42F
monochromatic
#172B61 #234193 #2F57C4 #597BD7 #8AA2E3

Accessibility & contrast

On white

6.40
#2F57C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#2F57C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F57C4
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F57C4#FFFFFF#000000##FFFFFF
##2F57C41.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C8
Deuteranopia (green-blind)
#0058C2
Tritanopia (blue-blind)
#007285
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2f57c4;
/* rgb */ color: rgb(47, 87, 196);
/* oklch */ color: oklch(49.4% 0.176 265.2);
Tailwind
colors: {
  custom: {
    50: '#7d85d7',
    500: '#2f57c4',
    950: '#000000',
  },
}
SCSS
$custom: #2f57c4;
$custom-light: #7d85d7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f57c4",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 196
  },
  "hsl": {
    "h": 223.893,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.49402,
    "c": 0.1765,
    "h": 265.2
  },
  "luminance": 0.11406
}

Semantic roles & 50–950 ramp

primary
#2F57C4
secondary
#CDB982
accent
#B943E4
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2F57C4

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

Preview Lab → · Contrast checker → · Palette generator →

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