#1F58C2#1F58C2

#1F58C2 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.9% C 0.177 H 261.4°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#1F58C2
RGBrgb(31, 88, 194)
HSLhsl(219, 72%, 44%)
HSVhsv(219, 84%, 76%)
CMYKcmyk(84%, 54.6%, 0%, 23.9%)
CIE-LABlab(39.86, 21.97, -60.48)
CIE-LCHlch(39.86, 64.35, 289.96°)
OKLaboklab(48.91% -0.0263 -0.1746)
OKLCHoklch(48.91% 0.177 261.4)
XYZxyz(13.7889, 11.1641, 52.4566)
Luminance0.1117 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F58C2 #C2891F
analogous
#1FAAC2 #1F58C2 #371FC2
triadic
#1F58C2 #C21F58 #58C21F
tetradic
#1F58C2 #C21FAA #C2891F #1FC237
square
#1F58C2 #C21FAA #C2891F #1FC237
split-complementary
#1F58C2 #C2371F #AAC21F
monochromatic
#0E2858 #17408D #1F58C2 #3E77E0 #739CE9

Accessibility & contrast

On white

6.50
#1F58C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#1F58C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F58C2
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F58C2#FFFFFF#000000##FFFFFF
##1F58C21.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C6
Deuteranopia (green-blind)
#0057C0
Tritanopia (blue-blind)
#007284
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #1f58c2;
/* rgb */ color: rgb(31, 88, 194);
/* oklch */ color: oklch(48.9% 0.177 261.4);
Tailwind
colors: {
  custom: {
    50: '#7886d5',
    500: '#1f58c2',
    950: '#000000',
  },
}
SCSS
$custom: #1f58c2;
$custom-light: #7886d5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f58c2",
  "rgb": {
    "r": 31,
    "g": 88,
    "b": 194
  },
  "hsl": {
    "h": 219.018,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48908,
    "c": 0.17661,
    "h": 261.4
  },
  "luminance": 0.11166
}

Semantic roles & 50–950 ramp

primary
#1F58C2
secondary
#CFAD6D
accent
#AF39EF
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #1F58C2

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

Preview Lab → · Contrast checker → · Palette generator →

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