#1F5988#1F5988

#1F5988 is a mid, moderate cyan. Relative luminance 0.092; OKLCH L 45.0% C 0.097 H 246.9°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#1F5988
RGBrgb(31, 89, 136)
HSLhsl(207, 63%, 33%)
HSVhsv(207, 77%, 53%)
CMYKcmyk(77.2%, 34.6%, 0%, 46.7%)
CIE-LABlab(36.39, -1.53, -31.51)
CIE-LCHlch(36.39, 31.54, 267.22°)
OKLaboklab(45.03% -0.0382 -0.0895)
OKLCHoklch(45.03% 0.097 246.9)
XYZxyz(8.5797, 9.2126, 24.6138)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5988 #884E1F
analogous
#1F8882 #1F5988 #1F2588
triadic
#1F5988 #881F59 #59881F
tetradic
#1F5988 #821F88 #884E1F #25881F
square
#1F5988 #821F88 #884E1F #25881F
split-complementary
#1F5988 #881F25 #88821F
monochromatic
#081824 #143856 #1F5988 #2A7ABA #4B98D6

Accessibility & contrast

On white

7.39
#1F5988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#1F5988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5988
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5988#FFFFFF#000000##FFFFFF
##1F59881.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435B8A
Deuteranopia (green-blind)
#345187
Tritanopia (blue-blind)
#00646A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #1f5988;
/* rgb */ color: rgb(31, 89, 136);
/* oklch */ color: oklch(45.0% 0.097 246.9);
Tailwind
colors: {
  custom: {
    50: '#6a87ab',
    500: '#1f5988',
    950: '#000000',
  },
}
SCSS
$custom: #1f5988;
$custom-light: #6a87ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5988",
  "rgb": {
    "r": 31,
    "g": 89,
    "b": 136
  },
  "hsl": {
    "h": 206.857,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.45027,
    "c": 0.09729,
    "h": 246.9
  },
  "luminance": 0.09214
}

Semantic roles & 50–950 ramp

primary
#1F5988
secondary
#B97C4A
accent
#8B42E6
background
#F6F8FA
surface
#ECEFF4
border
#C7CACE
text
#070B10
muted
#7A7C7F

Preview Lab

Preview with #1F5988

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

Preview Lab → · Contrast checker → · Palette generator →

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