#2F57B3#2F57B3

#2F57B3 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.1% C 0.153 H 263.9°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#2F57B3
RGBrgb(47, 87, 179)
HSLhsl(222, 58%, 44%)
HSVhsv(222, 74%, 70%)
CMYKcmyk(73.7%, 51.4%, 0%, 29.8%)
CIE-LABlab(39.03, 18.53, -53.02)
CIE-LCHlch(39.03, 56.17, 289.27°)
OKLaboklab(48.08% -0.0164 -0.1525)
OKLCHoklch(48.08% 0.153 263.9)
XYZxyz(12.7143, 10.6740, 44.0293)
Luminance0.1067 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F57B3 #B38B2F
analogous
#2F99B3 #2F57B3 #492FB3
triadic
#2F57B3 #B32F57 #57B32F
tetradic
#2F57B3 #B32F99 #B38B2F #2FB349
square
#2F57B3 #B32F99 #B38B2F #2FB349
split-complementary
#2F57B3 #B3492F #99B32F
monochromatic
#162852 #223F83 #2F57B3 #4F76D1 #7F9CDD

Accessibility & contrast

On white

6.70
#2F57B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#2F57B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F57B3
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F57B3#FFFFFF#000000##FFFFFF
##2F57B31.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D62B6
Deuteranopia (green-blind)
#0056B1
Tritanopia (blue-blind)
#006D7C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2f57b3;
/* rgb */ color: rgb(47, 87, 179);
/* oklch */ color: oklch(48.1% 0.153 263.9);
Tailwind
colors: {
  custom: {
    50: '#7985ca',
    500: '#2f57b3',
    950: '#000000',
  },
}
SCSS
$custom: #2f57b3;
$custom-light: #7985ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f57b3",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 179
  },
  "hsl": {
    "h": 221.818,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48083,
    "c": 0.15335,
    "h": 263.9
  },
  "luminance": 0.10675
}

Semantic roles & 50–950 ramp

primary
#2F57B3
secondary
#C6AE78
accent
#B346E2
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F57B3

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

Preview Lab → · Contrast checker → · Palette generator →

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