#1F5BB3#1F5BB3

#1F5BB3 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.4% C 0.153 H 258.6°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#1F5BB3
RGBrgb(31, 91, 179)
HSLhsl(216, 70%, 41%)
HSVhsv(216, 83%, 70%)
CMYKcmyk(82.7%, 49.2%, 0%, 29.8%)
CIE-LABlab(39.63, 14.10, -52.08)
CIE-LCHlch(39.63, 53.96, 285.15°)
OKLaboklab(48.39% -0.0302 -0.1499)
OKLCHoklch(48.39% 0.153 258.6)
XYZxyz(12.4399, 11.0266, 44.1118)
Luminance0.1103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5BB3 #B3771F
analogous
#1FA5B3 #1F5BB3 #2D1FB3
triadic
#1F5BB3 #B31F5B #5BB31F
tetradic
#1F5BB3 #B31FA5 #B3771F #1FB32D
square
#1F5BB3 #B31FA5 #B3771F #1FB32D
split-complementary
#1F5BB3 #B32D1F #A5B31F
monochromatic
#0D264B #16407F #1F5BB3 #3378DC #689AE5

Accessibility & contrast

On white

6.55
#1F5BB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #1F5BB3
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5BB3#FFFFFF#000000##FFFFFF
##1F5BB31.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2764B6
Deuteranopia (green-blind)
#0057B1
Tritanopia (blue-blind)
#00707E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #1f5bb3;
/* rgb */ color: rgb(31, 91, 179);
/* oklch */ color: oklch(48.4% 0.153 258.6);
Tailwind
colors: {
  custom: {
    50: '#7488ca',
    500: '#1f5bb3',
    950: '#000000',
  },
}
SCSS
$custom: #1f5bb3;
$custom-light: #7488ca;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5bb3",
  "rgb": {
    "r": 31,
    "g": 91,
    "b": 179
  },
  "hsl": {
    "h": 215.676,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.48392,
    "c": 0.15288,
    "h": 258.6
  },
  "luminance": 0.11028
}

Semantic roles & 50–950 ramp

primary
#1F5BB3
secondary
#CAA164
accent
#A53BED
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #1F5BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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