#1F4F86#1F4F86

#1F4F86 is a dark, moderate cyan. Relative luminance 0.076; OKLCH L 42.4% C 0.105 H 254.0°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#1F4F86
RGBrgb(31, 79, 134)
HSLhsl(212, 62%, 32%)
HSVhsv(212, 77%, 53%)
CMYKcmyk(76.9%, 41%, 0%, 47.5%)
CIE-LABlab(33.14, 4.17, -35.43)
CIE-LCHlch(33.14, 35.68, 276.72°)
OKLaboklab(42.45% -0.0289 -0.1011)
OKLCHoklch(42.45% 0.105 254)
XYZxyz(7.6625, 7.6036, 23.6134)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4F86 #86561F
analogous
#1F8286 #1F4F86 #231F86
triadic
#1F4F86 #861F4F #4F861F
tetradic
#1F4F86 #861F82 #86561F #1F8623
square
#1F4F86 #861F82 #86561F #1F8623
split-complementary
#1F4F86 #86231F #82861F
monochromatic
#081423 #143254 #1F4F86 #2A6CB8 #4A8BD5

Accessibility & contrast

On white

8.33
#1F4F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#1F4F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4F86
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4F86#FFFFFF#000000##FFFFFF
##1F4F861.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355388
Deuteranopia (green-blind)
#244A85
Tritanopia (blue-blind)
#005C64
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f4f86;
/* rgb */ color: rgb(31, 79, 134);
/* oklch */ color: oklch(42.4% 0.105 254.0);
Tailwind
colors: {
  custom: {
    50: '#6a7fa9',
    500: '#1f4f86',
    950: '#000000',
  },
}
SCSS
$custom: #1f4f86;
$custom-light: #6a7fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4f86",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 134
  },
  "hsl": {
    "h": 212.039,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.42445,
    "c": 0.10519,
    "h": 254
  },
  "luminance": 0.07605
}

Semantic roles & 50–950 ramp

primary
#1F4F86
secondary
#B88449
accent
#9942E5
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A10
muted
#7A7C7F

Preview Lab

Preview with #1F4F86

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

Preview Lab → · Contrast checker → · Palette generator →

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