#1F58B3#1F58B3

#1F58B3 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.7% C 0.157 H 259.7°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#1F58B3
RGBrgb(31, 88, 179)
HSLhsl(217, 70%, 41%)
HSVhsv(217, 83%, 70%)
CMYKcmyk(82.7%, 50.8%, 0%, 29.8%)
CIE-LABlab(38.77, 16.08, -53.47)
CIE-LCHlch(38.77, 55.83, 286.73°)
OKLaboklab(47.73% -0.028 -0.154)
OKLCHoklch(47.73% 0.157 259.7)
XYZxyz(12.1885, 10.5239, 44.0280)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F58B3 #B37A1F
analogous
#1FA2B3 #1F58B3 #301FB3
triadic
#1F58B3 #B31F58 #58B31F
tetradic
#1F58B3 #B31FA2 #B37A1F #1FB330
square
#1F58B3 #B31FA2 #B37A1F #1FB330
split-complementary
#1F58B3 #B3301F #A2B31F
monochromatic
#0D254B #163E7F #1F58B3 #3374DC #6898E5

Accessibility & contrast

On white

6.76
#1F58B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#1F58B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F58B3
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F58B3#FFFFFF#000000##FFFFFF
##1F58B31.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D62B6
Deuteranopia (green-blind)
#0055B1
Tritanopia (blue-blind)
#006E7D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #1f58b3;
/* rgb */ color: rgb(31, 88, 179);
/* oklch */ color: oklch(47.7% 0.157 259.7);
Tailwind
colors: {
  custom: {
    50: '#7486ca',
    500: '#1f58b3',
    950: '#000000',
  },
}
SCSS
$custom: #1f58b3;
$custom-light: #7486ca;
$custom-dark: #000000;
JSON
{
  "hex": "#1f58b3",
  "rgb": {
    "r": 31,
    "g": 88,
    "b": 179
  },
  "hsl": {
    "h": 216.892,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47734,
    "c": 0.15653,
    "h": 259.7
  },
  "luminance": 0.10525
}

Semantic roles & 50–950 ramp

primary
#1F58B3
secondary
#CAA364
accent
#A83BED
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #1F58B3

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

Preview Lab → · Contrast checker → · Palette generator →

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