#1F5897#1F5897

#1F5897 is a mid, moderate cyan. Relative luminance 0.095; OKLCH L 45.7% C 0.118 H 253.7°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#1F5897
RGBrgb(31, 88, 151)
HSLhsl(212, 66%, 36%)
HSVhsv(212, 79%, 59%)
CMYKcmyk(79.5%, 41.7%, 0%, 40.8%)
CIE-LABlab(36.94, 4.99, -39.73)
CIE-LCHlch(36.94, 40.04, 277.15°)
OKLaboklab(45.73% -0.0332 -0.1136)
OKLCHoklch(45.73% 0.118 253.7)
XYZxyz(9.6386, 9.5040, 30.5986)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5897 #975E1F
analogous
#1F9497 #1F5897 #221F97
triadic
#1F5897 #971F58 #58971F
tetradic
#1F5897 #971F94 #975E1F #1F9722
square
#1F5897 #971F94 #975E1F #1F9722
split-complementary
#1F5897 #97221F #94971F
monochromatic
#0A1D31 #153A64 #1F5897 #2976CA #5495DC

Accessibility & contrast

On white

7.24
#1F5897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#1F5897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5897
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5897#FFFFFF#000000##FFFFFF
##1F58971.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395D99
Deuteranopia (green-blind)
#255296
Tritanopia (blue-blind)
#006770
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #1f5897;
/* rgb */ color: rgb(31, 88, 151);
/* oklch */ color: oklch(45.7% 0.118 253.7);
Tailwind
colors: {
  custom: {
    50: '#6e86b6',
    500: '#1f5897',
    950: '#000000',
  },
}
SCSS
$custom: #1f5897;
$custom-light: #6e86b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5897",
  "rgb": {
    "r": 31,
    "g": 88,
    "b": 151
  },
  "hsl": {
    "h": 211.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45734,
    "c": 0.11835,
    "h": 253.7
  },
  "luminance": 0.09505
}

Semantic roles & 50–950 ramp

primary
#1F5897
secondary
#BF8C52
accent
#983FE9
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#080B11
muted
#7B7C80

Preview Lab

Preview with #1F5897

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

Preview Lab → · Contrast checker → · Palette generator →

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