#1F5F89#1F5F89

#1F5F89 is a mid, moderate cyan. Relative luminance 0.103; OKLCH L 46.6% C 0.093 H 241.9°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#1F5F89
RGBrgb(31, 95, 137)
HSLhsl(204, 63%, 33%)
HSVhsv(204, 77%, 54%)
CMYKcmyk(77.4%, 30.7%, 0%, 46.3%)
CIE-LABlab(38.34, -4.90, -29.04)
CIE-LCHlch(38.34, 29.45, 260.42°)
OKLaboklab(46.58% -0.0439 -0.0822)
OKLCHoklch(46.58% 0.093 241.9)
XYZxyz(9.1709, 10.2808, 25.1631)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5F89 #89491F
analogous
#1F897E #1F5F89 #1F2A89
triadic
#1F5F89 #891F5F #5F891F
tetradic
#1F5F89 #7E1F89 #89491F #2A891F
square
#1F5F89 #7E1F89 #89491F #2A891F
split-complementary
#1F5F89 #891F2A #897E1F
monochromatic
#081A25 #143C57 #1F5F89 #2A82BB #4CA0D6

Accessibility & contrast

On white

6.87
#1F5F89 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#1F5F89 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5F89
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5F89#FFFFFF#000000##FFFFFF
##1F5F891.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B608B
Deuteranopia (green-blind)
#3D5688
Tritanopia (blue-blind)
#00696E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #1f5f89;
/* rgb */ color: rgb(31, 95, 137);
/* oklch */ color: oklch(46.6% 0.093 241.9);
Tailwind
colors: {
  custom: {
    50: '#6b8cab',
    500: '#1f5f89',
    950: '#000000',
  },
}
SCSS
$custom: #1f5f89;
$custom-light: #6b8cab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5f89",
  "rgb": {
    "r": 31,
    "g": 95,
    "b": 137
  },
  "hsl": {
    "h": 203.774,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.46584,
    "c": 0.0932,
    "h": 241.9
  },
  "luminance": 0.10282
}

Semantic roles & 50–950 ramp

primary
#1F5F89
secondary
#B9764B
accent
#8342E6
background
#F6F8FA
surface
#ECF0F4
border
#C7CBCE
text
#070C10
muted
#7A7D7F

Preview Lab

Preview with #1F5F89

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

Preview Lab → · Contrast checker → · Palette generator →

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