#1F5BB4#1F5BB4

#1F5BB4 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.5% C 0.154 H 258.7°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#1F5BB4
RGBrgb(31, 91, 180)
HSLhsl(216, 71%, 41%)
HSVhsv(216, 83%, 71%)
CMYKcmyk(82.8%, 49.4%, 0%, 29.4%)
CIE-LABlab(39.69, 14.49, -52.56)
CIE-LCHlch(39.69, 54.52, 285.41°)
OKLaboklab(48.47% -0.0301 -0.1513)
OKLCHoklch(48.47% 0.154 258.7)
XYZxyz(12.5414, 11.0672, 44.6464)
Luminance0.1107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5BB4 #B4781F
analogous
#1FA6B4 #1F5BB4 #2E1FB4
triadic
#1F5BB4 #B41F5B #5BB41F
tetradic
#1F5BB4 #B41FA6 #B4781F #1FB42E
square
#1F5BB4 #B41FA6 #B4781F #1FB42E
split-complementary
#1F5BB4 #B42E1F #A6B41F
monochromatic
#0D264C #164180 #1F5BB4 #3478DC #689BE5

Accessibility & contrast

On white

6.53
#1F5BB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#1F5BB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5BB4
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5BB4#FFFFFF#000000##FFFFFF
##1F5BB41.006.533.216.53
#FFFFFF6.531.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2565B7
Deuteranopia (green-blind)
#0057B2
Tritanopia (blue-blind)
#00717F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #1f5bb4;
/* rgb */ color: rgb(31, 91, 180);
/* oklch */ color: oklch(48.5% 0.154 258.7);
Tailwind
colors: {
  custom: {
    50: '#7488cb',
    500: '#1f5bb4',
    950: '#000000',
  },
}
SCSS
$custom: #1f5bb4;
$custom-light: #7488cb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5bb4",
  "rgb": {
    "r": 31,
    "g": 91,
    "b": 180
  },
  "hsl": {
    "h": 215.839,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.48466,
    "c": 0.15423,
    "h": 258.7
  },
  "luminance": 0.11069
}

Semantic roles & 50–950 ramp

primary
#1F5BB4
secondary
#CBA164
accent
#A53AED
background
#F7F8FC
surface
#EEEFF9
border
#C9CAD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #1F5BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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