#1F5799#1F5799

#1F5799 is a mid, vivid cyan. Relative luminance 0.094; OKLCH L 45.6% C 0.122 H 254.9°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#1F5799
RGBrgb(31, 87, 153)
HSLhsl(212, 66%, 36%)
HSVhsv(212, 80%, 60%)
CMYKcmyk(79.7%, 43.1%, 0%, 40%)
CIE-LABlab(36.76, 6.43, -41.23)
CIE-LCHlch(36.76, 41.72, 278.87°)
OKLaboklab(45.63% -0.0319 -0.118)
OKLCHoklch(45.63% 0.122 254.9)
XYZxyz(9.7209, 9.4065, 31.4341)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5799 #99611F
analogous
#1F9499 #1F5799 #241F99
triadic
#1F5799 #991F57 #57991F
tetradic
#1F5799 #991F94 #99611F #1F9924
square
#1F5799 #991F94 #99611F #1F9924
split-complementary
#1F5799 #99241F #94991F
monochromatic
#0A1D33 #153A66 #1F5799 #2974CC #5694DD

Accessibility & contrast

On white

7.29
#1F5799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#1F5799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5799
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5799#FFFFFF#000000##FFFFFF
##1F57991.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365C9C
Deuteranopia (green-blind)
#205198
Tritanopia (blue-blind)
#006770
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #1f5799;
/* rgb */ color: rgb(31, 87, 153);
/* oklch */ color: oklch(45.6% 0.122 254.9);
Tailwind
colors: {
  custom: {
    50: '#6e85b7',
    500: '#1f5799',
    950: '#000000',
  },
}
SCSS
$custom: #1f5799;
$custom-light: #6e85b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5799",
  "rgb": {
    "r": 31,
    "g": 87,
    "b": 153
  },
  "hsl": {
    "h": 212.459,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45632,
    "c": 0.12223,
    "h": 254.9
  },
  "luminance": 0.09408
}

Semantic roles & 50–950 ramp

primary
#1F5799
secondary
#C08E54
accent
#9B3FE9
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#080B11
muted
#7B7C80

Preview Lab

Preview with #1F5799

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

Preview Lab → · Contrast checker → · Palette generator →

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