#1F57BB#1F57BB

#1F57BB is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.1% C 0.169 H 261.0°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#1F57BB
RGBrgb(31, 87, 187)
HSLhsl(218, 72%, 43%)
HSVhsv(218, 83%, 73%)
CMYKcmyk(83.4%, 53.5%, 0%, 26.7%)
CIE-LABlab(39.06, 19.89, -57.69)
CIE-LCHlch(39.06, 61.02, 289.02°)
OKLaboklab(48.14% -0.0264 -0.1664)
OKLCHoklch(48.14% 0.169 261)
XYZxyz(12.9397, 10.6940, 48.3862)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F57BB #BB831F
analogous
#1FA5BB #1F57BB #351FBB
triadic
#1F57BB #BB1F57 #57BB1F
tetradic
#1F57BB #BB1FA5 #BB831F #1FBB35
square
#1F57BB #BB1FA5 #BB831F #1FBB35
split-complementary
#1F57BB #BB351F #A5BB1F
monochromatic
#0E2652 #163F87 #1F57BB #3974DE #6E99E7

Accessibility & contrast

On white

6.69
#1F57BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#1F57BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F57BB
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F57BB#FFFFFF#000000##FFFFFF
##1F57BB1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0263BF
Deuteranopia (green-blind)
#0055B9
Tritanopia (blue-blind)
#007080
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #1f57bb;
/* rgb */ color: rgb(31, 87, 187);
/* oklch */ color: oklch(48.1% 0.169 261.0);
Tailwind
colors: {
  custom: {
    50: '#7685d0',
    500: '#1f57bb',
    950: '#000000',
  },
}
SCSS
$custom: #1f57bb;
$custom-light: #7685d0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f57bb",
  "rgb": {
    "r": 31,
    "g": 87,
    "b": 187
  },
  "hsl": {
    "h": 218.462,
    "s": 71.56,
    "l": 42.745
  },
  "oklch": {
    "l": 0.4814,
    "c": 0.16852,
    "h": 261
  },
  "luminance": 0.10696
}

Semantic roles & 50–950 ramp

primary
#1F57BB
secondary
#CDA969
accent
#AD3AEE
background
#F7F8FC
surface
#EEEFF9
border
#C9CAD2
text
#0A0B14
muted
#7C7C82

Preview Lab

Preview with #1F57BB

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

Preview Lab → · Contrast checker → · Palette generator →

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