#1F5797#1F5797

#1F5797 is a mid, moderate cyan. Relative luminance 0.093; OKLCH L 45.5% C 0.119 H 254.3°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#1F5797
RGBrgb(31, 87, 151)
HSLhsl(212, 66%, 36%)
HSVhsv(212, 79%, 59%)
CMYKcmyk(79.5%, 42.4%, 0%, 40.8%)
CIE-LABlab(36.63, 5.64, -40.22)
CIE-LCHlch(36.63, 40.61, 277.98°)
OKLaboklab(45.5% -0.0323 -0.115)
OKLCHoklch(45.5% 0.119 254.3)
XYZxyz(9.5571, 9.3409, 30.5714)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5797 #975F1F
analogous
#1F9397 #1F5797 #231F97
triadic
#1F5797 #971F57 #57971F
tetradic
#1F5797 #971F93 #975F1F #1F9723
square
#1F5797 #971F93 #975F1F #1F9723
split-complementary
#1F5797 #97231F #93971F
monochromatic
#0A1C31 #153A64 #1F5797 #2974CA #5494DC

Accessibility & contrast

On white

7.32
#1F5797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#1F5797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5797
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5797#FFFFFF#000000##FFFFFF
##1F57971.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385C9A
Deuteranopia (green-blind)
#235196
Tritanopia (blue-blind)
#00666F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #1f5797;
/* rgb */ color: rgb(31, 87, 151);
/* oklch */ color: oklch(45.5% 0.119 254.3);
Tailwind
colors: {
  custom: {
    50: '#6e85b6',
    500: '#1f5797',
    950: '#000000',
  },
}
SCSS
$custom: #1f5797;
$custom-light: #6e85b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5797",
  "rgb": {
    "r": 31,
    "g": 87,
    "b": 151
  },
  "hsl": {
    "h": 212,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45497,
    "c": 0.11949,
    "h": 254.3
  },
  "luminance": 0.09342
}

Semantic roles & 50–950 ramp

primary
#1F5797
secondary
#BF8D52
accent
#9A3FE9
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#080B11
muted
#7B7C80

Preview Lab

Preview with #1F5797

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

Preview Lab → · Contrast checker → · Palette generator →

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