#1F5087#1F5087

#1F5087 is a dark, moderate cyan. Relative luminance 0.078; OKLCH L 42.8% C 0.105 H 253.7°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#1F5087
RGBrgb(31, 80, 135)
HSLhsl(212, 63%, 33%)
HSVhsv(212, 77%, 53%)
CMYKcmyk(77%, 40.7%, 0%, 47.1%)
CIE-LABlab(33.51, 3.91, -35.46)
CIE-LCHlch(33.51, 35.67, 276.29°)
OKLaboklab(42.75% -0.0297 -0.1012)
OKLCHoklch(42.75% 0.105 253.7)
XYZxyz(7.8053, 7.7770, 24.0067)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5087 #87561F
analogous
#1F8487 #1F5087 #221F87
triadic
#1F5087 #871F50 #50871F
tetradic
#1F5087 #871F84 #87561F #1F8722
square
#1F5087 #871F84 #87561F #1F8722
split-complementary
#1F5087 #87221F #84871F
monochromatic
#081523 #143355 #1F5087 #2A6DB9 #4B8CD6

Accessibility & contrast

On white

8.22
#1F5087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#1F5087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5087
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5087#FFFFFF#000000##FFFFFF
##1F50871.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365489
Deuteranopia (green-blind)
#254A86
Tritanopia (blue-blind)
#005D65
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1f5087;
/* rgb */ color: rgb(31, 80, 135);
/* oklch */ color: oklch(42.8% 0.105 253.7);
Tailwind
colors: {
  custom: {
    50: '#6a80aa',
    500: '#1f5087',
    950: '#000000',
  },
}
SCSS
$custom: #1f5087;
$custom-light: #6a80aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5087",
  "rgb": {
    "r": 31,
    "g": 80,
    "b": 135
  },
  "hsl": {
    "h": 211.731,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.42754,
    "c": 0.10545,
    "h": 253.7
  },
  "luminance": 0.07778
}

Semantic roles & 50–950 ramp

primary
#1F5087
secondary
#B8844A
accent
#9942E6
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A10
muted
#7A7C7F

Preview Lab

Preview with #1F5087

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

Preview Lab → · Contrast checker → · Palette generator →

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