#1F5CBB#1F5CBB

#1F5CBB is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.2% C 0.162 H 259.4°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#1F5CBB
RGBrgb(31, 92, 187)
HSLhsl(217, 72%, 43%)
HSVhsv(217, 83%, 73%)
CMYKcmyk(83.4%, 50.8%, 0%, 26.7%)
CIE-LABlab(40.46, 16.59, -55.42)
CIE-LCHlch(40.46, 57.85, 286.67°)
OKLaboklab(49.21% -0.0298 -0.1597)
OKLCHoklch(49.21% 0.162 259.4)
XYZxyz(13.3586, 11.5318, 48.5259)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5CBB #BB7E1F
analogous
#1FAABB #1F5CBB #301FBB
triadic
#1F5CBB #BB1F5C #5CBB1F
tetradic
#1F5CBB #BB1FAA #BB7E1F #1FBB30
square
#1F5CBB #BB1FAA #BB7E1F #1FBB30
split-complementary
#1F5CBB #BB301F #AABB1F
monochromatic
#0E2852 #164287 #1F5CBB #397ADE #6E9DE7

Accessibility & contrast

On white

6.35
#1F5CBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#1F5CBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5CBB
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5CBB#FFFFFF#000000##FFFFFF
##1F5CBB1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E67BE
Deuteranopia (green-blind)
#0059B9
Tritanopia (blue-blind)
#007382
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #1f5cbb;
/* rgb */ color: rgb(31, 92, 187);
/* oklch */ color: oklch(49.2% 0.162 259.4);
Tailwind
colors: {
  custom: {
    50: '#7689d0',
    500: '#1f5cbb',
    950: '#000000',
  },
}
SCSS
$custom: #1f5cbb;
$custom-light: #7689d0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5cbb",
  "rgb": {
    "r": 31,
    "g": 92,
    "b": 187
  },
  "hsl": {
    "h": 216.538,
    "s": 71.56,
    "l": 42.745
  },
  "oklch": {
    "l": 0.4921,
    "c": 0.16242,
    "h": 259.4
  },
  "luminance": 0.11533
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F5CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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