#1F5989#1F5989

#1F5989 is a mid, moderate cyan. Relative luminance 0.092; OKLCH L 45.1% C 0.099 H 247.4°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#1F5989
RGBrgb(31, 89, 137)
HSLhsl(207, 63%, 33%)
HSVhsv(207, 77%, 54%)
CMYKcmyk(77.4%, 35%, 0%, 46.3%)
CIE-LABlab(36.44, -1.14, -32.03)
CIE-LCHlch(36.44, 32.05, 267.96°)
OKLaboklab(45.09% -0.0379 -0.091)
OKLCHoklch(45.09% 0.099 247.4)
XYZxyz(8.6511, 9.2412, 24.9898)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5989 #894F1F
analogous
#1F8984 #1F5989 #1F2489
triadic
#1F5989 #891F59 #59891F
tetradic
#1F5989 #841F89 #894F1F #24891F
square
#1F5989 #841F89 #894F1F #24891F
split-complementary
#1F5989 #891F24 #89841F
monochromatic
#081825 #143957 #1F5989 #2A79BB #4C98D6

Accessibility & contrast

On white

7.37
#1F5989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#1F5989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5989
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5989#FFFFFF#000000##FFFFFF
##1F59891.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435B8B
Deuteranopia (green-blind)
#345188
Tritanopia (blue-blind)
#00656A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #1f5989;
/* rgb */ color: rgb(31, 89, 137);
/* oklch */ color: oklch(45.1% 0.099 247.4);
Tailwind
colors: {
  custom: {
    50: '#6b87ab',
    500: '#1f5989',
    950: '#000000',
  },
}
SCSS
$custom: #1f5989;
$custom-light: #6b87ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5989",
  "rgb": {
    "r": 31,
    "g": 89,
    "b": 137
  },
  "hsl": {
    "h": 207.17,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.45087,
    "c": 0.09858,
    "h": 247.4
  },
  "luminance": 0.09242
}

Semantic roles & 50–950 ramp

primary
#1F5989
secondary
#B97D4B
accent
#8C42E6
background
#F6F8FA
surface
#ECEFF4
border
#C7CACE
text
#070B10
muted
#7A7C7F

Preview Lab

Preview with #1F5989

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

Preview Lab → · Contrast checker → · Palette generator →

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