#1F5F98#1F5F98

#1F5F98 is a mid, moderate cyan. Relative luminance 0.107; OKLCH L 47.5% C 0.112 H 249.4°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#1F5F98
RGBrgb(31, 95, 152)
HSLhsl(208, 66%, 36%)
HSVhsv(208, 80%, 60%)
CMYKcmyk(79.6%, 37.5%, 0%, 40.4%)
CIE-LABlab(39.14, 0.87, -36.82)
CIE-LCHlch(39.14, 36.83, 271.36°)
OKLaboklab(47.48% -0.0394 -0.1049)
OKLCHoklch(47.48% 0.112 249.4)
XYZxyz(10.3226, 10.7415, 31.2289)
Luminance0.1074 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5F98 #98581F
analogous
#1F9894 #1F5F98 #1F2398
triadic
#1F5F98 #981F5F #5F981F
tetradic
#1F5F98 #941F98 #98581F #23981F
square
#1F5F98 #941F98 #98581F #23981F
split-complementary
#1F5F98 #981F23 #98941F
monochromatic
#0A1F32 #153F65 #1F5F98 #297FCB #559DDC

Accessibility & contrast

On white

6.67
#1F5F98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#1F5F98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5F98
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5F98#FFFFFF#000000##FFFFFF
##1F5F981.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#44629A
Deuteranopia (green-blind)
#325797
Tritanopia (blue-blind)
#006D74
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #1f5f98;
/* rgb */ color: rgb(31, 95, 152);
/* oklch */ color: oklch(47.5% 0.112 249.4);
Tailwind
colors: {
  custom: {
    50: '#6e8cb6',
    500: '#1f5f98',
    950: '#000000',
  },
}
SCSS
$custom: #1f5f98;
$custom-light: #6e8cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5f98",
  "rgb": {
    "r": 31,
    "g": 95,
    "b": 152
  },
  "hsl": {
    "h": 208.264,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.47476,
    "c": 0.11207,
    "h": 249.4
  },
  "luminance": 0.10743
}

Semantic roles & 50–950 ramp

primary
#1F5F98
secondary
#C08653
accent
#8F3FE9
background
#F7F8FB
surface
#EDF0F6
border
#C8CBD0
text
#080C11
muted
#7B7D80

Preview Lab

Preview with #1F5F98

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

Preview Lab → · Contrast checker → · Palette generator →

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