#1F57B3#1F57B3

#1F57B3 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.5% C 0.158 H 260.0°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#1F57B3
RGBrgb(31, 87, 179)
HSLhsl(217, 70%, 41%)
HSVhsv(217, 83%, 70%)
CMYKcmyk(82.7%, 51.4%, 0%, 29.8%)
CIE-LABlab(38.48, 16.74, -53.93)
CIE-LCHlch(38.48, 56.47, 287.24°)
OKLaboklab(47.52% -0.0273 -0.1554)
OKLCHoklch(47.52% 0.158 260)
XYZxyz(12.1070, 10.3609, 44.0008)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F57B3 #B37B1F
analogous
#1FA1B3 #1F57B3 #311FB3
triadic
#1F57B3 #B31F57 #57B31F
tetradic
#1F57B3 #B31FA1 #B37B1F #1FB331
square
#1F57B3 #B31FA1 #B37B1F #1FB331
split-complementary
#1F57B3 #B3311F #A1B31F
monochromatic
#0D244B #163E7F #1F57B3 #3373DC #6897E5

Accessibility & contrast

On white

6.84
#1F57B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#1F57B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##1F57B3#FFFFFF#000000##FFFFFF
##1F57B31.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A62B6
Deuteranopia (green-blind)
#0054B1
Tritanopia (blue-blind)
#006D7C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #1f57b3;
/* rgb */ color: rgb(31, 87, 179);
/* oklch */ color: oklch(47.5% 0.158 260.0);
Tailwind
colors: {
  custom: {
    50: '#7485ca',
    500: '#1f57b3',
    950: '#000000',
  },
}
SCSS
$custom: #1f57b3;
$custom-light: #7485ca;
$custom-dark: #000000;
JSON
{
  "hex": "#1f57b3",
  "rgb": {
    "r": 31,
    "g": 87,
    "b": 179
  },
  "hsl": {
    "h": 217.297,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47516,
    "c": 0.15776,
    "h": 260
  },
  "luminance": 0.10362
}

Semantic roles & 50–950 ramp

primary
#1F57B3
secondary
#CAA364
accent
#AA3BED
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #1F57B3

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

Preview Lab → · Contrast checker → · Palette generator →

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