#1F5789#1F5789

#1F5789 is a dark, moderate cyan. Relative luminance 0.089; OKLCH L 44.6% C 0.101 H 249.1°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#1F5789
RGBrgb(31, 87, 137)
HSLhsl(208, 63%, 33%)
HSVhsv(208, 77%, 54%)
CMYKcmyk(77.4%, 36.5%, 0%, 46.3%)
CIE-LABlab(35.82, 0.14, -33.02)
CIE-LCHlch(35.82, 33.02, 270.24°)
OKLaboklab(44.59% -0.0359 -0.0939)
OKLCHoklch(44.59% 0.101 249.1)
XYZxyz(8.4869, 8.9129, 24.9351)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5789 #89511F
analogous
#1F8986 #1F5789 #1F2289
triadic
#1F5789 #891F57 #57891F
tetradic
#1F5789 #861F89 #89511F #22891F
square
#1F5789 #861F89 #89511F #22891F
split-complementary
#1F5789 #891F22 #89861F
monochromatic
#081825 #143757 #1F5789 #2A77BB #4C95D6

Accessibility & contrast

On white

7.55
#1F5789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#1F5789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5789
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5789#FFFFFF#000000##FFFFFF
##1F57891.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405A8B
Deuteranopia (green-blind)
#305088
Tritanopia (blue-blind)
#006369
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #1f5789;
/* rgb */ color: rgb(31, 87, 137);
/* oklch */ color: oklch(44.6% 0.101 249.1);
Tailwind
colors: {
  custom: {
    50: '#6b86ab',
    500: '#1f5789',
    950: '#000000',
  },
}
SCSS
$custom: #1f5789;
$custom-light: #6b86ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5789",
  "rgb": {
    "r": 31,
    "g": 87,
    "b": 137
  },
  "hsl": {
    "h": 208.302,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.44593,
    "c": 0.10058,
    "h": 249.1
  },
  "luminance": 0.08914
}

Semantic roles & 50–950 ramp

primary
#1F5789
secondary
#B97F4B
accent
#8F42E6
background
#F6F8FA
surface
#ECEFF4
border
#C7CACE
text
#070B10
muted
#7A7C7F

Preview Lab

Preview with #1F5789

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

Preview Lab → · Contrast checker → · Palette generator →

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