#1F57AD#1F57AD

#1F57AD is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.1% C 0.150 H 259.2°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#1F57AD
RGBrgb(31, 87, 173)
HSLhsl(216, 70%, 40%)
HSVhsv(216, 82%, 68%)
CMYKcmyk(82.1%, 49.7%, 0%, 32.2%)
CIE-LABlab(38.06, 14.36, -51.06)
CIE-LCHlch(38.06, 53.05, 285.71°)
OKLaboklab(47.06% -0.0282 -0.1469)
OKLCHoklch(47.06% 0.15 259.2)
XYZxyz(11.5133, 10.1234, 40.8743)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F57AD #AD751F
analogous
#1F9EAD #1F57AD #2E1FAD
triadic
#1F57AD #AD1F57 #57AD1F
tetradic
#1F57AD #AD1F9E #AD751F #1FAD2E
square
#1F57AD #AD1F9E #AD751F #1FAD2E
split-complementary
#1F57AD #AD2E1F #9EAD1F
monochromatic
#0C2345 #163D79 #1F57AD #2F73DA #6396E3

Accessibility & contrast

On white

6.94
#1F57AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#1F57AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##1F57AD#FFFFFF#000000##FFFFFF
##1F57AD1.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2360B0
Deuteranopia (green-blind)
#0054AB
Tritanopia (blue-blind)
#006C7A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #1f57ad;
/* rgb */ color: rgb(31, 87, 173);
/* oklch */ color: oklch(47.1% 0.150 259.2);
Tailwind
colors: {
  custom: {
    50: '#7385c6',
    500: '#1f57ad',
    950: '#000000',
  },
}
SCSS
$custom: #1f57ad;
$custom-light: #7385c6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f57ad",
  "rgb": {
    "r": 31,
    "g": 87,
    "b": 173
  },
  "hsl": {
    "h": 216.338,
    "s": 69.608,
    "l": 40
  },
  "oklch": {
    "l": 0.47062,
    "c": 0.14961,
    "h": 259.2
  },
  "luminance": 0.10125
}

Semantic roles & 50–950 ramp

primary
#1F57AD
secondary
#C89F60
accent
#A73BEC
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#090B13
muted
#7B7C82

Preview Lab

Preview with #1F57AD

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

Preview Lab → · Contrast checker → · Palette generator →

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