#2F57AD#2F57AD

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

Color values

HEX#2F57AD
RGBrgb(47, 87, 173)
HSLhsl(221, 57%, 43%)
HSVhsv(221, 73%, 68%)
CMYKcmyk(72.8%, 49.7%, 0%, 32.2%)
CIE-LABlab(38.61, 16.26, -50.15)
CIE-LCHlch(38.61, 52.72, 287.97°)
OKLaboklab(47.64% -0.0171 -0.144)
OKLCHoklch(47.64% 0.145 263.2)
XYZxyz(12.1206, 10.4366, 40.9027)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F57AD #AD852F
analogous
#2F96AD #2F57AD #462FAD
triadic
#2F57AD #AD2F57 #57AD2F
tetradic
#2F57AD #AD2F96 #AD852F #2FAD46
square
#2F57AD #AD2F96 #AD852F #2FAD46
split-complementary
#2F57AD #AD462F #96AD2F
monochromatic
#15274D #223F7D #2F57AD #4B75CE #7B9ADB

Accessibility & contrast

On white

6.80
#2F57AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#2F57AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F57AD
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F57AD#FFFFFF#000000##FFFFFF
##2F57AD1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2661B0
Deuteranopia (green-blind)
#0055AB
Tritanopia (blue-blind)
#006B7A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f57ad;
/* rgb */ color: rgb(47, 87, 173);
/* oklch */ color: oklch(47.6% 0.145 263.2);
Tailwind
colors: {
  custom: {
    50: '#7885c6',
    500: '#2f57ad',
    950: '#000000',
  },
}
SCSS
$custom: #2f57ad;
$custom-light: #7885c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f57ad",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 173
  },
  "hsl": {
    "h": 220.952,
    "s": 57.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47639,
    "c": 0.14501,
    "h": 263.2
  },
  "luminance": 0.10438
}

Semantic roles & 50–950 ramp

primary
#2F57AD
secondary
#C4AA74
accent
#B047E1
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F57AD

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

Preview Lab → · Contrast checker → · Palette generator →

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