#1F5F97#1F5F97

#1F5F97 is a mid, moderate cyan. Relative luminance 0.107; OKLCH L 47.4% C 0.111 H 249.0°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#1F5F97
RGBrgb(31, 95, 151)
HSLhsl(208, 66%, 36%)
HSVhsv(208, 79%, 59%)
CMYKcmyk(79.5%, 37.1%, 0%, 40.8%)
CIE-LABlab(39.09, 0.49, -36.31)
CIE-LCHlch(39.09, 36.32, 270.77°)
OKLaboklab(47.41% -0.0396 -0.1034)
OKLCHoklch(47.41% 0.111 249)
XYZxyz(10.2411, 10.7089, 30.7994)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5F97 #97571F
analogous
#1F9793 #1F5F97 #1F2397
triadic
#1F5F97 #971F5F #5F971F
tetradic
#1F5F97 #931F97 #97571F #23971F
square
#1F5F97 #931F97 #97571F #23971F
split-complementary
#1F5F97 #971F23 #97931F
monochromatic
#0A1F31 #153F64 #1F5F97 #297FCA #549DDC

Accessibility & contrast

On white

6.68
#1F5F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#1F5F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5F97
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5F97#FFFFFF#000000##FFFFFF
##1F5F971.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#456299
Deuteranopia (green-blind)
#335796
Tritanopia (blue-blind)
#006C74
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #1f5f97;
/* rgb */ color: rgb(31, 95, 151);
/* oklch */ color: oklch(47.4% 0.111 249.0);
Tailwind
colors: {
  custom: {
    50: '#6e8cb6',
    500: '#1f5f97',
    950: '#000000',
  },
}
SCSS
$custom: #1f5f97;
$custom-light: #6e8cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5f97",
  "rgb": {
    "r": 31,
    "g": 95,
    "b": 151
  },
  "hsl": {
    "h": 208,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.47414,
    "c": 0.11078,
    "h": 249
  },
  "luminance": 0.1071
}

Semantic roles & 50–950 ramp

primary
#1F5F97
secondary
#BF8552
accent
#8E3FE9
background
#F7F8FB
surface
#EDF0F6
border
#C8CBD0
text
#080C11
muted
#7B7D80

Preview Lab

Preview with #1F5F97

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

Preview Lab → · Contrast checker → · Palette generator →

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