#2F57AF#2F57AF

#2F57AF is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.8% C 0.148 H 263.5°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#2F57AF
RGBrgb(47, 87, 175)
HSLhsl(221, 58%, 44%)
HSVhsv(221, 73%, 69%)
CMYKcmyk(73.1%, 50.3%, 0%, 31.4%)
CIE-LABlab(38.75, 17.02, -51.11)
CIE-LCHlch(38.75, 53.87, 288.42°)
OKLaboklab(47.79% -0.0168 -0.1468)
OKLCHoklch(47.79% 0.148 263.5)
XYZxyz(12.3156, 10.5146, 41.9296)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F57AF #AF872F
analogous
#2F97AF #2F57AF #472FAF
triadic
#2F57AF #AF2F57 #57AF2F
tetradic
#2F57AF #AF2F97 #AF872F #2FAF47
square
#2F57AF #AF2F97 #AF872F #2FAF47
split-complementary
#2F57AF #AF472F #97AF2F
monochromatic
#15274F #223F7F #2F57AF #4C75CF #7C9ADC

Accessibility & contrast

On white

6.77
#2F57AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#2F57AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F57AF
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F57AF#FFFFFF#000000##FFFFFF
##2F57AF1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2361B2
Deuteranopia (green-blind)
#0056AD
Tritanopia (blue-blind)
#006C7A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f57af;
/* rgb */ color: rgb(47, 87, 175);
/* oklch */ color: oklch(47.8% 0.148 263.5);
Tailwind
colors: {
  custom: {
    50: '#7985c7',
    500: '#2f57af',
    950: '#000000',
  },
}
SCSS
$custom: #2f57af;
$custom-light: #7985c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f57af",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 175
  },
  "hsl": {
    "h": 221.25,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47786,
    "c": 0.1478,
    "h": 263.5
  },
  "luminance": 0.10516
}

Semantic roles & 50–950 ramp

primary
#2F57AF
secondary
#C4AC75
accent
#B147E1
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F57AF

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

Preview Lab → · Contrast checker → · Palette generator →

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