#1F5A98#1F5A98

#1F5A98 is a mid, moderate cyan. Relative luminance 0.099; OKLCH L 46.3% C 0.117 H 252.8°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#1F5A98
RGBrgb(31, 90, 152)
HSLhsl(211, 66%, 36%)
HSVhsv(211, 80%, 60%)
CMYKcmyk(79.6%, 40.8%, 0%, 40.4%)
CIE-LABlab(37.61, 4.08, -39.26)
CIE-LCHlch(37.61, 39.48, 275.93°)
OKLaboklab(46.28% -0.0348 -0.1122)
OKLCHoklch(46.28% 0.117 252.8)
XYZxyz(9.8866, 9.8695, 31.0836)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5A98 #985D1F
analogous
#1F9698 #1F5A98 #211F98
triadic
#1F5A98 #981F5A #5A981F
tetradic
#1F5A98 #981F96 #985D1F #1F9821
square
#1F5A98 #981F96 #985D1F #1F9821
split-complementary
#1F5A98 #98211F #96981F
monochromatic
#0A1E32 #153C65 #1F5A98 #2978CB #5597DC

Accessibility & contrast

On white

7.06
#1F5A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F5A98
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5A98#FFFFFF#000000##FFFFFF
##1F5A981.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5E9A
Deuteranopia (green-blind)
#285397
Tritanopia (blue-blind)
#006971
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #1f5a98;
/* rgb */ color: rgb(31, 90, 152);
/* oklch */ color: oklch(46.3% 0.117 252.8);
Tailwind
colors: {
  custom: {
    50: '#6e88b7',
    500: '#1f5a98',
    950: '#000000',
  },
}
SCSS
$custom: #1f5a98;
$custom-light: #6e88b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5a98",
  "rgb": {
    "r": 31,
    "g": 90,
    "b": 152
  },
  "hsl": {
    "h": 210.744,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.46276,
    "c": 0.11745,
    "h": 252.8
  },
  "luminance": 0.09871
}

Semantic roles & 50–950 ramp

primary
#1F5A98
secondary
#C08B53
accent
#963FE9
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#080B11
muted
#7B7C80

Preview Lab

Preview with #1F5A98

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

Preview Lab → · Contrast checker → · Palette generator →

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