#1F4F85#1F4F85

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

Color values

HEX#1F4F85
RGBrgb(31, 79, 133)
HSLhsl(212, 62%, 32%)
HSVhsv(212, 77%, 52%)
CMYKcmyk(76.7%, 40.6%, 0%, 47.8%)
CIE-LABlab(33.08, 3.78, -34.91)
CIE-LCHlch(33.08, 35.11, 276.17°)
OKLaboklab(42.38% -0.0292 -0.0996)
OKLCHoklch(42.38% 0.104 253.7)
XYZxyz(7.5931, 7.5759, 23.2479)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4F85 #85551F
analogous
#1F8285 #1F4F85 #221F85
triadic
#1F4F85 #851F4F #4F851F
tetradic
#1F4F85 #851F82 #85551F #1F8522
square
#1F4F85 #851F82 #85551F #1F8522
split-complementary
#1F4F85 #85221F #82851F
monochromatic
#081422 #133253 #1F4F85 #2B6CB7 #4A8BD5

Accessibility & contrast

On white

8.35
#1F4F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4F85
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4F85#FFFFFF#000000##FFFFFF
##1F4F851.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365387
Deuteranopia (green-blind)
#254984
Tritanopia (blue-blind)
#005C63
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f4f85;
/* rgb */ color: rgb(31, 79, 133);
/* oklch */ color: oklch(42.4% 0.104 253.7);
Tailwind
colors: {
  custom: {
    50: '#6a7fa9',
    500: '#1f4f85',
    950: '#000000',
  },
}
SCSS
$custom: #1f4f85;
$custom-light: #6a7fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4f85",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 133
  },
  "hsl": {
    "h": 211.765,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.42379,
    "c": 0.1038,
    "h": 253.7
  },
  "luminance": 0.07577
}

Semantic roles & 50–950 ramp

primary
#1F4F85
secondary
#B78349
accent
#9943E5
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A10
muted
#7A7C7F

Preview Lab

Preview with #1F4F85

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

Preview Lab → · Contrast checker → · Palette generator →

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