#1F5DC2#1F5DC2

#1F5DC2 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.0% C 0.171 H 260.0°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#1F5DC2
RGBrgb(31, 93, 194)
HSLhsl(217, 72%, 44%)
HSVhsv(217, 84%, 76%)
CMYKcmyk(84%, 52.1%, 0%, 23.9%)
CIE-LABlab(41.24, 18.68, -58.24)
CIE-LCHlch(41.24, 61.17, 287.78°)
OKLaboklab(49.96% -0.0296 -0.1679)
OKLCHoklch(49.96% 0.171 260)
XYZxyz(14.2135, 12.0133, 52.5981)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5DC2 #C2841F
analogous
#1FAFC2 #1F5DC2 #331FC2
triadic
#1F5DC2 #C21F5D #5DC21F
tetradic
#1F5DC2 #C21FAF #C2841F #1FC233
square
#1F5DC2 #C21FAF #C2841F #1FC233
split-complementary
#1F5DC2 #C2331F #AFC21F
monochromatic
#0E2A58 #17448D #1F5DC2 #3E7CE0 #73A0E9

Accessibility & contrast

On white

6.17
#1F5DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#1F5DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5DC2
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5DC2#FFFFFF#000000##FFFFFF
##1F5DC21.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1469C6
Deuteranopia (green-blind)
#005AC0
Tritanopia (blue-blind)
#007686
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #1f5dc2;
/* rgb */ color: rgb(31, 93, 194);
/* oklch */ color: oklch(50.0% 0.171 260.0);
Tailwind
colors: {
  custom: {
    50: '#788ad5',
    500: '#1f5dc2',
    950: '#000000',
  },
}
SCSS
$custom: #1f5dc2;
$custom-light: #788ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5dc2",
  "rgb": {
    "r": 31,
    "g": 93,
    "b": 194
  },
  "hsl": {
    "h": 217.178,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49959,
    "c": 0.17053,
    "h": 260
  },
  "luminance": 0.12015
}

Semantic roles & 50–950 ramp

primary
#1F5DC2
secondary
#CFAA6D
accent
#AA39EF
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #1F5DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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