#1F4E85#1F4E85

#1F4E85 is a dark, moderate cyan. Relative luminance 0.074; OKLCH L 42.1% C 0.105 H 254.4°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#1F4E85
RGBrgb(31, 78, 133)
HSLhsl(212, 62%, 32%)
HSVhsv(212, 77%, 52%)
CMYKcmyk(76.7%, 41.4%, 0%, 47.8%)
CIE-LABlab(32.77, 4.44, -35.41)
CIE-LCHlch(32.77, 35.68, 277.14°)
OKLaboklab(42.14% -0.0282 -0.1011)
OKLCHoklch(42.14% 0.105 254.4)
XYZxyz(7.5215, 7.4327, 23.2240)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E85 #85561F
analogous
#1F8185 #1F4E85 #231F85
triadic
#1F4E85 #851F4E #4E851F
tetradic
#1F4E85 #851F81 #85561F #1F8523
square
#1F4E85 #851F81 #85561F #1F8523
split-complementary
#1F4E85 #85231F #81851F
monochromatic
#081422 #133153 #1F4E85 #2B6BB7 #4A8AD5

Accessibility & contrast

On white

8.44
#1F4E85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#1F4E85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E85
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E85#FFFFFF#000000##FFFFFF
##1F4E851.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345287
Deuteranopia (green-blind)
#234984
Tritanopia (blue-blind)
#005B63
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f4e85;
/* rgb */ color: rgb(31, 78, 133);
/* oklch */ color: oklch(42.1% 0.105 254.4);
Tailwind
colors: {
  custom: {
    50: '#6a7fa9',
    500: '#1f4e85',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e85;
$custom-light: #6a7fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e85",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 133
  },
  "hsl": {
    "h": 212.353,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.42137,
    "c": 0.10495,
    "h": 254.4
  },
  "luminance": 0.07434
}

Semantic roles & 50–950 ramp

primary
#1F4E85
secondary
#B78449
accent
#9A43E5
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A10
muted
#7A7C7F

Preview Lab

Preview with #1F4E85

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

Preview Lab → · Contrast checker → · Palette generator →

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