#1F5899#1F5899

#1F5899 is a mid, vivid cyan. Relative luminance 0.096; OKLCH L 45.9% C 0.121 H 254.3°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#1F5899
RGBrgb(31, 88, 153)
HSLhsl(212, 66%, 36%)
HSVhsv(212, 80%, 60%)
CMYKcmyk(79.7%, 42.5%, 0%, 40%)
CIE-LABlab(37.06, 5.78, -40.74)
CIE-LCHlch(37.06, 41.15, 278.07°)
OKLaboklab(45.87% -0.0327 -0.1166)
OKLCHoklch(45.87% 0.121 254.3)
XYZxyz(9.8024, 9.5695, 31.4613)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5899 #99601F
analogous
#1F9599 #1F5899 #231F99
triadic
#1F5899 #991F58 #58991F
tetradic
#1F5899 #991F95 #99601F #1F9923
square
#1F5899 #991F95 #99601F #1F9923
split-complementary
#1F5899 #99231F #95991F
monochromatic
#0A1D33 #153B66 #1F5899 #2975CC #5695DD

Accessibility & contrast

On white

7.21
#1F5899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#1F5899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5899
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5899#FFFFFF#000000##FFFFFF
##1F58991.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385D9C
Deuteranopia (green-blind)
#235298
Tritanopia (blue-blind)
#006771
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #1f5899;
/* rgb */ color: rgb(31, 88, 153);
/* oklch */ color: oklch(45.9% 0.121 254.3);
Tailwind
colors: {
  custom: {
    50: '#6e86b7',
    500: '#1f5899',
    950: '#000000',
  },
}
SCSS
$custom: #1f5899;
$custom-light: #6e86b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5899",
  "rgb": {
    "r": 31,
    "g": 88,
    "b": 153
  },
  "hsl": {
    "h": 211.967,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45868,
    "c": 0.12107,
    "h": 254.3
  },
  "luminance": 0.09571
}

Semantic roles & 50–950 ramp

primary
#1F5899
secondary
#C08D54
accent
#993FE9
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#080B11
muted
#7B7C80

Preview Lab

Preview with #1F5899

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

Preview Lab → · Contrast checker → · Palette generator →

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