#1F5BC2#1F5BC2

#1F5BC2 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.5% C 0.173 H 260.6°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#1F5BC2
RGBrgb(31, 91, 194)
HSLhsl(218, 72%, 44%)
HSVhsv(218, 84%, 76%)
CMYKcmyk(84%, 53.1%, 0%, 23.9%)
CIE-LABlab(40.68, 19.99, -59.14)
CIE-LCHlch(40.68, 62.43, 288.68°)
OKLaboklab(49.54% -0.0283 -0.1706)
OKLCHoklch(49.54% 0.173 260.6)
XYZxyz(14.0402, 11.6668, 52.5404)
Luminance0.1167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5BC2 #C2861F
analogous
#1FADC2 #1F5BC2 #351FC2
triadic
#1F5BC2 #C21F5B #5BC21F
tetradic
#1F5BC2 #C21FAD #C2861F #1FC235
square
#1F5BC2 #C21FAD #C2861F #1FC235
split-complementary
#1F5BC2 #C2351F #ADC21F
monochromatic
#0E2958 #17428D #1F5BC2 #3E7AE0 #739EE9

Accessibility & contrast

On white

6.30
#1F5BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#1F5BC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5BC2
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5BC2#FFFFFF#000000##FFFFFF
##1F5BC21.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0668C6
Deuteranopia (green-blind)
#0059C0
Tritanopia (blue-blind)
#007485
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #1f5bc2;
/* rgb */ color: rgb(31, 91, 194);
/* oklch */ color: oklch(49.5% 0.173 260.6);
Tailwind
colors: {
  custom: {
    50: '#7888d5',
    500: '#1f5bc2',
    950: '#000000',
  },
}
SCSS
$custom: #1f5bc2;
$custom-light: #7888d5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5bc2",
  "rgb": {
    "r": 31,
    "g": 91,
    "b": 194
  },
  "hsl": {
    "h": 217.914,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49535,
    "c": 0.17296,
    "h": 260.6
  },
  "luminance": 0.11669
}

Semantic roles & 50–950 ramp

primary
#1F5BC2
secondary
#CFAB6D
accent
#AC39EF
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #1F5BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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