#1F5FD2#1F5FD2

#1F5FD2 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.6% C 0.189 H 261.1°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#1F5FD2
RGBrgb(31, 95, 210)
HSLhsl(219, 74%, 47%)
HSVhsv(219, 85%, 82%)
CMYKcmyk(85.2%, 54.8%, 0%, 17.6%)
CIE-LABlab(42.95, 23.60, -64.69)
CIE-LCHlch(42.95, 68.86, 290.04°)
OKLaboklab(51.63% -0.0292 -0.1869)
OKLCHoklch(51.63% 0.189 261.1)
XYZxyz(16.2859, 13.1268, 62.6356)
Luminance0.1313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5FD2 #D2921F
analogous
#1FB9D2 #1F5FD2 #381FD2
triadic
#1F5FD2 #D21F5F #5FD21F
tetradic
#1F5FD2 #D21FB9 #D2921F #1FD238
square
#1F5FD2 #D21FB9 #D2921F #1FD238
split-complementary
#1F5FD2 #D2381F #B9D21F
monochromatic
#0F2F67 #17479D #1F5FD2 #4A81E4 #7FA6EC

Accessibility & contrast

On white

5.79
#1F5FD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#1F5FD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5FD2
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5FD2#FFFFFF#000000##FFFFFF
##1F5FD21.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED6
Deuteranopia (green-blind)
#005ED0
Tritanopia (blue-blind)
#007C8F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #1f5fd2;
/* rgb */ color: rgb(31, 95, 210);
/* oklch */ color: oklch(51.6% 0.189 261.1);
Tailwind
colors: {
  custom: {
    50: '#7c8be1',
    500: '#1f5fd2',
    950: '#000000',
  },
}
SCSS
$custom: #1f5fd2;
$custom-light: #7c8be1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5fd2",
  "rgb": {
    "r": 31,
    "g": 95,
    "b": 210
  },
  "hsl": {
    "h": 218.547,
    "s": 74.274,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51633,
    "c": 0.18913,
    "h": 261.1
  },
  "luminance": 0.13129
}

Semantic roles & 50–950 ramp

primary
#1F5FD2
secondary
#D4B478
accent
#AE37F1
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0B0B15
muted
#7C7C83

Preview Lab

Preview with #1F5FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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