#1F4F7C#1F4F7C

#1F4F7C is a dark, moderate cyan. Relative luminance 0.073; OKLCH L 41.8% C 0.091 H 249.7°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#1F4F7C
RGBrgb(31, 79, 124)
HSLhsl(209, 60%, 30%)
HSVhsv(209, 75%, 49%)
CMYKcmyk(75%, 36.3%, 0%, 51.4%)
CIE-LABlab(32.56, 0.24, -30.17)
CIE-LCHlch(32.56, 30.17, 270.45°)
OKLaboklab(41.8% -0.0317 -0.0857)
OKLCHoklch(41.8% 0.091 249.7)
XYZxyz(6.9978, 7.3377, 20.1124)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4F7C #7C4C1F
analogous
#1F7C7A #1F4F7C #1F217C
triadic
#1F4F7C #7C1F4F #4F7C1F
tetradic
#1F4F7C #7A1F7C #7C4C1F #217C1F
square
#1F4F7C #7A1F7C #7C4C1F #217C1F
split-complementary
#1F4F7C #7C1F21 #7C7A1F
monochromatic
#07111A #13304B #1F4F7C #2B6EAD #458DD0

Accessibility & contrast

On white

8.51
#1F4F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4F7C
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4F7C#FFFFFF#000000##FFFFFF
##1F4F7C1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B517E
Deuteranopia (green-blind)
#2D497B
Tritanopia (blue-blind)
#005A5F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f4f7c;
/* rgb */ color: rgb(31, 79, 124);
/* oklch */ color: oklch(41.8% 0.091 249.7);
Tailwind
colors: {
  custom: {
    50: '#6880a2',
    500: '#1f4f7c',
    950: '#000000',
  },
}
SCSS
$custom: #1f4f7c;
$custom-light: #6880a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4f7c",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 124
  },
  "hsl": {
    "h": 209.032,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.41803,
    "c": 0.09139,
    "h": 249.7
  },
  "luminance": 0.07339
}

Semantic roles & 50–950 ramp

primary
#1F4F7C
secondary
#AF7A48
accent
#9145E3
background
#F6F7FA
surface
#EBEEF3
border
#C6C9CD
text
#070A0F
muted
#7A7C7F

Preview Lab

Preview with #1F4F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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