#1F57A9#1F57A9

#1F57A9 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 46.8% C 0.144 H 258.5°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#1F57A9
RGBrgb(31, 87, 169)
HSLhsl(216, 69%, 39%)
HSVhsv(216, 82%, 66%)
CMYKcmyk(81.7%, 48.5%, 0%, 33.7%)
CIE-LABlab(37.79, 12.78, -49.13)
CIE-LCHlch(37.79, 50.77, 284.58°)
OKLaboklab(46.77% -0.0288 -0.1413)
OKLCHoklch(46.77% 0.144 258.5)
XYZxyz(11.1321, 9.9709, 38.8663)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F57A9 #A9711F
analogous
#1F9CA9 #1F57A9 #2C1FA9
triadic
#1F57A9 #A91F57 #57A91F
tetradic
#1F57A9 #A91F9C #A9711F #1FA92C
square
#1F57A9 #A91F9C #A9711F #1FA92C
split-complementary
#1F57A9 #A92C1F #9CA91F
monochromatic
#0C2242 #163C75 #1F57A9 #2D72D8 #6095E2

Accessibility & contrast

On white

7.01
#1F57A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#1F57A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F57A9
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F57A9#FFFFFF#000000##FFFFFF
##1F57A91.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2860AC
Deuteranopia (green-blind)
#0053A7
Tritanopia (blue-blind)
#006B78
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #1f57a9;
/* rgb */ color: rgb(31, 87, 169);
/* oklch */ color: oklch(46.8% 0.144 258.5);
Tailwind
colors: {
  custom: {
    50: '#7285c3',
    500: '#1f57a9',
    950: '#000000',
  },
}
SCSS
$custom: #1f57a9;
$custom-light: #7285c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f57a9",
  "rgb": {
    "r": 31,
    "g": 87,
    "b": 169
  },
  "hsl": {
    "h": 215.652,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46765,
    "c": 0.14416,
    "h": 258.5
  },
  "luminance": 0.09972
}

Semantic roles & 50–950 ramp

primary
#1F57A9
secondary
#C79C5D
accent
#A43CEC
background
#F7F8FC
surface
#EDEFF8
border
#C8CAD1
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #1F57A9

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

Preview Lab → · Contrast checker → · Palette generator →

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