#1F5ABB#1F5ABB

#1F5ABB is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.8% C 0.165 H 260.1°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#1F5ABB
RGBrgb(31, 90, 187)
HSLhsl(217, 72%, 43%)
HSVhsv(217, 83%, 73%)
CMYKcmyk(83.4%, 51.9%, 0%, 26.7%)
CIE-LABlab(39.90, 17.91, -56.33)
CIE-LCHlch(39.90, 59.11, 287.63°)
OKLaboklab(48.78% -0.0284 -0.1624)
OKLCHoklch(48.78% 0.165 260.1)
XYZxyz(13.1876, 11.1899, 48.4689)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5ABB #BB801F
analogous
#1FA8BB #1F5ABB #321FBB
triadic
#1F5ABB #BB1F5A #5ABB1F
tetradic
#1F5ABB #BB1FA8 #BB801F #1FBB32
square
#1F5ABB #BB1FA8 #BB801F #1FBB32
split-complementary
#1F5ABB #BB321F #A8BB1F
monochromatic
#0E2752 #164187 #1F5ABB #3977DE #6E9BE7

Accessibility & contrast

On white

6.49
#1F5ABB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#1F5ABB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5ABB
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5ABB#FFFFFF#000000##FFFFFF
##1F5ABB1.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1665BE
Deuteranopia (green-blind)
#0057B9
Tritanopia (blue-blind)
#007282
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #1f5abb;
/* rgb */ color: rgb(31, 90, 187);
/* oklch */ color: oklch(48.8% 0.165 260.1);
Tailwind
colors: {
  custom: {
    50: '#7687d0',
    500: '#1f5abb',
    950: '#000000',
  },
}
SCSS
$custom: #1f5abb;
$custom-light: #7687d0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5abb",
  "rgb": {
    "r": 31,
    "g": 90,
    "b": 187
  },
  "hsl": {
    "h": 217.308,
    "s": 71.56,
    "l": 42.745
  },
  "oklch": {
    "l": 0.48779,
    "c": 0.16486,
    "h": 260.1
  },
  "luminance": 0.11191
}

Semantic roles & 50–950 ramp

primary
#1F5ABB
secondary
#CDA769
accent
#AA3AEE
background
#F7F8FC
surface
#EEEFF9
border
#C9CAD2
text
#0A0B14
muted
#7C7C82

Preview Lab

Preview with #1F5ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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