#1F5BBB#1F5BBB

#1F5BBB is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.0% C 0.164 H 259.8°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#1F5BBB
RGBrgb(31, 91, 187)
HSLhsl(217, 72%, 43%)
HSVhsv(217, 83%, 73%)
CMYKcmyk(83.4%, 51.3%, 0%, 26.7%)
CIE-LABlab(40.18, 17.25, -55.88)
CIE-LCHlch(40.18, 58.48, 287.15°)
OKLaboklab(48.99% -0.0291 -0.161)
OKLCHoklch(48.99% 0.164 259.8)
XYZxyz(13.2725, 11.3597, 48.4972)
Luminance0.1136 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5BBB #BB7F1F
analogous
#1FA9BB #1F5BBB #311FBB
triadic
#1F5BBB #BB1F5B #5BBB1F
tetradic
#1F5BBB #BB1FA9 #BB7F1F #1FBB31
square
#1F5BBB #BB1FA9 #BB7F1F #1FBB31
split-complementary
#1F5BBB #BB311F #A9BB1F
monochromatic
#0E2852 #164187 #1F5BBB #3979DE #6E9CE7

Accessibility & contrast

On white

6.42
#1F5BBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#1F5BBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5BBB
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5BBB#FFFFFF#000000##FFFFFF
##1F5BBB1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A66BE
Deuteranopia (green-blind)
#0058B9
Tritanopia (blue-blind)
#007282
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #1f5bbb;
/* rgb */ color: rgb(31, 91, 187);
/* oklch */ color: oklch(49.0% 0.164 259.8);
Tailwind
colors: {
  custom: {
    50: '#7688d0',
    500: '#1f5bbb',
    950: '#000000',
  },
}
SCSS
$custom: #1f5bbb;
$custom-light: #7688d0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5bbb",
  "rgb": {
    "r": 31,
    "g": 91,
    "b": 187
  },
  "hsl": {
    "h": 216.923,
    "s": 71.56,
    "l": 42.745
  },
  "oklch": {
    "l": 0.48994,
    "c": 0.16363,
    "h": 259.8
  },
  "luminance": 0.11361
}

Semantic roles & 50–950 ramp

primary
#1F5BBB
secondary
#CDA669
accent
#A93AEE
background
#F7F8FC
surface
#EEEFF9
border
#C9CAD2
text
#0A0B14
muted
#7C7C82

Preview Lab

Preview with #1F5BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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