#1F5997#1F5997

#1F5997 is a mid, moderate cyan. Relative luminance 0.097; OKLCH L 46.0% C 0.117 H 253.1°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#1F5997
RGBrgb(31, 89, 151)
HSLhsl(211, 66%, 36%)
HSVhsv(211, 79%, 59%)
CMYKcmyk(79.5%, 41.1%, 0%, 40.8%)
CIE-LABlab(37.24, 4.34, -39.24)
CIE-LCHlch(37.24, 39.48, 276.31°)
OKLaboklab(45.97% -0.0341 -0.1121)
OKLCHoklch(45.97% 0.117 253.1)
XYZxyz(9.7213, 9.6693, 30.6262)
Luminance0.0967 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5997 #975D1F
analogous
#1F9597 #1F5997 #211F97
triadic
#1F5997 #971F59 #59971F
tetradic
#1F5997 #971F95 #975D1F #1F9721
square
#1F5997 #971F95 #975D1F #1F9721
split-complementary
#1F5997 #97211F #95971F
monochromatic
#0A1D31 #153B64 #1F5997 #2977CA #5496DC

Accessibility & contrast

On white

7.16
#1F5997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#1F5997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5997
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5997#FFFFFF#000000##FFFFFF
##1F59971.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5E99
Deuteranopia (green-blind)
#275396
Tritanopia (blue-blind)
#006870
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #1f5997;
/* rgb */ color: rgb(31, 89, 151);
/* oklch */ color: oklch(46.0% 0.117 253.1);
Tailwind
colors: {
  custom: {
    50: '#6e87b6',
    500: '#1f5997',
    950: '#000000',
  },
}
SCSS
$custom: #1f5997;
$custom-light: #6e87b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5997",
  "rgb": {
    "r": 31,
    "g": 89,
    "b": 151
  },
  "hsl": {
    "h": 211,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45972,
    "c": 0.11722,
    "h": 253.1
  },
  "luminance": 0.0967
}

Semantic roles & 50–950 ramp

primary
#1F5997
secondary
#BF8B52
accent
#973FE9
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#080B11
muted
#7B7C80

Preview Lab

Preview with #1F5997

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

Preview Lab → · Contrast checker → · Palette generator →

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