#1F5387#1F5387

#1F5387 is a dark, moderate cyan. Relative luminance 0.082; OKLCH L 43.5% C 0.102 H 251.4°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#1F5387
RGBrgb(31, 83, 135)
HSLhsl(210, 63%, 33%)
HSVhsv(210, 77%, 53%)
CMYKcmyk(77%, 38.5%, 0%, 47.1%)
CIE-LABlab(34.45, 1.94, -33.97)
CIE-LCHlch(34.45, 34.02, 273.27°)
OKLaboklab(43.49% -0.0326 -0.0968)
OKLCHoklch(43.49% 0.102 251.4)
XYZxyz(8.0299, 8.2262, 24.0816)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5387 #87531F
analogous
#1F8787 #1F5387 #1F1F87
triadic
#1F5387 #871F53 #53871F
tetradic
#1F5387 #871F87 #87531F #1F871F
square
#1F5387 #871F87 #87531F #1F871F
split-complementary
#1F5387 #871F1F #87871F
monochromatic
#081623 #143455 #1F5387 #2A72B9 #4B90D6

Accessibility & contrast

On white

7.94
#1F5387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#1F5387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5387
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5387#FFFFFF#000000##FFFFFF
##1F53871.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5689
Deuteranopia (green-blind)
#2B4D86
Tritanopia (blue-blind)
#005F66
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #1f5387;
/* rgb */ color: rgb(31, 83, 135);
/* oklch */ color: oklch(43.5% 0.102 251.4);
Tailwind
colors: {
  custom: {
    50: '#6a83aa',
    500: '#1f5387',
    950: '#000000',
  },
}
SCSS
$custom: #1f5387;
$custom-light: #6a83aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5387",
  "rgb": {
    "r": 31,
    "g": 83,
    "b": 135
  },
  "hsl": {
    "h": 210,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43485,
    "c": 0.10211,
    "h": 251.4
  },
  "luminance": 0.08227
}

Semantic roles & 50–950 ramp

primary
#1F5387
secondary
#B8814A
accent
#9442E6
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A10
muted
#7A7C7F

Preview Lab

Preview with #1F5387

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

Preview Lab → · Contrast checker → · Palette generator →

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