#1F5A97#1F5A97

#1F5A97 is a mid, moderate cyan. Relative luminance 0.098; OKLCH L 46.2% C 0.116 H 252.4°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#1F5A97
RGBrgb(31, 90, 151)
HSLhsl(211, 66%, 36%)
HSVhsv(211, 79%, 59%)
CMYKcmyk(79.5%, 40.4%, 0%, 40.8%)
CIE-LABlab(37.55, 3.69, -38.76)
CIE-LCHlch(37.55, 38.93, 275.44°)
OKLaboklab(46.21% -0.035 -0.1107)
OKLCHoklch(46.21% 0.116 252.4)
XYZxyz(9.8051, 9.8368, 30.6541)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5A97 #975C1F
analogous
#1F9697 #1F5A97 #201F97
triadic
#1F5A97 #971F5A #5A971F
tetradic
#1F5A97 #971F96 #975C1F #1F9720
square
#1F5A97 #971F96 #975C1F #1F9720
split-complementary
#1F5A97 #97201F #96971F
monochromatic
#0A1D31 #153C64 #1F5A97 #2978CA #5497DC

Accessibility & contrast

On white

7.08
#1F5A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#1F5A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5A97
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5A97#FFFFFF#000000##FFFFFF
##1F5A971.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5E99
Deuteranopia (green-blind)
#295396
Tritanopia (blue-blind)
#006871
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #1f5a97;
/* rgb */ color: rgb(31, 90, 151);
/* oklch */ color: oklch(46.2% 0.116 252.4);
Tailwind
colors: {
  custom: {
    50: '#6e88b6',
    500: '#1f5a97',
    950: '#000000',
  },
}
SCSS
$custom: #1f5a97;
$custom-light: #6e88b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5a97",
  "rgb": {
    "r": 31,
    "g": 90,
    "b": 151
  },
  "hsl": {
    "h": 210.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.4621,
    "c": 0.1161,
    "h": 252.4
  },
  "luminance": 0.09838
}

Semantic roles & 50–950 ramp

primary
#1F5A97
secondary
#BF8A52
accent
#953FE9
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#080B11
muted
#7B7C80

Preview Lab

Preview with #1F5A97

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

Preview Lab → · Contrast checker → · Palette generator →

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