#1F4F7D#1F4F7D

#1F4F7D is a dark, moderate cyan. Relative luminance 0.074; OKLCH L 41.9% C 0.093 H 250.2°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#1F4F7D
RGBrgb(31, 79, 125)
HSLhsl(209, 60%, 31%)
HSVhsv(209, 75%, 49%)
CMYKcmyk(75.2%, 36.8%, 0%, 51%)
CIE-LABlab(32.62, 0.63, -30.70)
CIE-LCHlch(32.62, 30.71, 271.17°)
OKLaboklab(41.87% -0.0314 -0.0873)
OKLCHoklch(41.87% 0.093 250.2)
XYZxyz(7.0613, 7.3632, 20.4471)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4F7D #7D4D1F
analogous
#1F7D7C #1F4F7D #1F207D
triadic
#1F4F7D #7D1F4F #4F7D1F
tetradic
#1F4F7D #7C1F7D #7D4D1F #207D1F
square
#1F4F7D #7C1F7D #7D4D1F #207D1F
split-complementary
#1F4F7D #7D1F20 #7D7C1F
monochromatic
#07111B #13304C #1F4F7D #2B6EAE #458DD1

Accessibility & contrast

On white

8.49
#1F4F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#1F4F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4F7D
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4F7D#FFFFFF#000000##FFFFFF
##1F4F7D1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A527F
Deuteranopia (green-blind)
#2C497C
Tritanopia (blue-blind)
#005A60
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f4f7d;
/* rgb */ color: rgb(31, 79, 125);
/* oklch */ color: oklch(41.9% 0.093 250.2);
Tailwind
colors: {
  custom: {
    50: '#6880a3',
    500: '#1f4f7d',
    950: '#000000',
  },
}
SCSS
$custom: #1f4f7d;
$custom-light: #6880a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4f7d",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 125
  },
  "hsl": {
    "h": 209.362,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.41866,
    "c": 0.09275,
    "h": 250.2
  },
  "luminance": 0.07364
}

Semantic roles & 50–950 ramp

primary
#1F4F7D
secondary
#B07B48
accent
#9244E3
background
#F6F7FA
surface
#EBEEF3
border
#C6C9CD
text
#070A0F
muted
#7A7C7F

Preview Lab

Preview with #1F4F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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