#1F57B0#1F57B0

#1F57B0 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.3% C 0.154 H 259.6°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#1F57B0
RGBrgb(31, 87, 176)
HSLhsl(217, 70%, 41%)
HSVhsv(217, 82%, 69%)
CMYKcmyk(82.4%, 50.6%, 0%, 31%)
CIE-LABlab(38.27, 15.55, -52.50)
CIE-LCHlch(38.27, 54.76, 286.50°)
OKLaboklab(47.29% -0.0277 -0.1512)
OKLCHoklch(47.29% 0.154 259.6)
XYZxyz(11.8069, 10.2408, 42.4203)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F57B0 #B0781F
analogous
#1F9FB0 #1F57B0 #301FB0
triadic
#1F57B0 #B01F57 #57B01F
tetradic
#1F57B0 #B01F9F #B0781F #1FB030
square
#1F57B0 #B01F9F #B0781F #1FB030
split-complementary
#1F57B0 #B0301F #9FB01F
monochromatic
#0D2448 #163D7C #1F57B0 #3173DB #6596E4

Accessibility & contrast

On white

6.89
#1F57B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#1F57B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F57B0
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F57B0#FFFFFF#000000##FFFFFF
##1F57B01.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F61B3
Deuteranopia (green-blind)
#0054AE
Tritanopia (blue-blind)
#006D7B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #1f57b0;
/* rgb */ color: rgb(31, 87, 176);
/* oklch */ color: oklch(47.3% 0.154 259.6);
Tailwind
colors: {
  custom: {
    50: '#7485c8',
    500: '#1f57b0',
    950: '#000000',
  },
}
SCSS
$custom: #1f57b0;
$custom-light: #7485c8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f57b0",
  "rgb": {
    "r": 31,
    "g": 87,
    "b": 176
  },
  "hsl": {
    "h": 216.828,
    "s": 70.048,
    "l": 40.588
  },
  "oklch": {
    "l": 0.47288,
    "c": 0.15369,
    "h": 259.6
  },
  "luminance": 0.10242
}

Semantic roles & 50–950 ramp

primary
#1F57B0
secondary
#C9A162
accent
#A83BED
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #1F57B0

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

Preview Lab → · Contrast checker → · Palette generator →

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