#1F4D89#1F4D89

#1F4D89 is a dark, moderate cyan. Relative luminance 0.074; OKLCH L 42.2% C 0.112 H 256.4°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#1F4D89
RGBrgb(31, 77, 137)
HSLhsl(214, 63%, 33%)
HSVhsv(214, 77%, 54%)
CMYKcmyk(77.4%, 43.8%, 0%, 46.3%)
CIE-LABlab(32.71, 6.70, -37.97)
CIE-LCHlch(32.71, 38.55, 280.00°)
OKLaboklab(42.17% -0.0263 -0.1086)
OKLCHoklch(42.17% 0.112 256.4)
XYZxyz(7.7326, 7.4043, 24.6837)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4D89 #895B1F
analogous
#1F8289 #1F4D89 #261F89
triadic
#1F4D89 #891F4D #4D891F
tetradic
#1F4D89 #891F82 #895B1F #1F8926
square
#1F4D89 #891F82 #895B1F #1F8926
split-complementary
#1F4D89 #89261F #82891F
monochromatic
#081525 #143157 #1F4D89 #2A69BB #4C88D6

Accessibility & contrast

On white

8.46
#1F4D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#1F4D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4D89
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4D89#FFFFFF#000000##FFFFFF
##1F4D891.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F528B
Deuteranopia (green-blind)
#1C4888
Tritanopia (blue-blind)
#005B64
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f4d89;
/* rgb */ color: rgb(31, 77, 137);
/* oklch */ color: oklch(42.2% 0.112 256.4);
Tailwind
colors: {
  custom: {
    50: '#6b7eac',
    500: '#1f4d89',
    950: '#000000',
  },
}
SCSS
$custom: #1f4d89;
$custom-light: #6b7eac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4d89",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 137
  },
  "hsl": {
    "h": 213.962,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.42168,
    "c": 0.11177,
    "h": 256.4
  },
  "luminance": 0.07405
}

Semantic roles & 50–950 ramp

primary
#1F4D89
secondary
#B9894B
accent
#9F42E6
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #1F4D89

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

Preview Lab → · Contrast checker → · Palette generator →

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