#1F4772#1F4772

#1F4772 is a dark, moderate cyan. Relative luminance 0.060; OKLCH L 39.2% C 0.086 H 252.3°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#1F4772
RGBrgb(31, 71, 114)
HSLhsl(211, 57%, 28%)
HSVhsv(211, 73%, 45%)
CMYKcmyk(72.8%, 37.7%, 0%, 55.3%)
CIE-LABlab(29.44, 1.59, -28.85)
CIE-LCHlch(29.44, 28.90, 273.15°)
OKLaboklab(39.17% -0.0261 -0.082)
OKLCHoklch(39.17% 0.086 252.3)
XYZxyz(5.8544, 6.0121, 16.7682)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4772 #724A1F
analogous
#1F7072 #1F4772 #201F72
triadic
#1F4772 #721F47 #47721F
tetradic
#1F4772 #721F70 #724A1F #1F7220
square
#1F4772 #721F70 #724A1F #1F7220
split-complementary
#1F4772 #72201F #70721F
monochromatic
#070F18 #122942 #1F4772 #2C65A2 #4083CB

Accessibility & contrast

On white

9.53
#1F4772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#1F4772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4772
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4772#FFFFFF#000000##FFFFFF
##1F47721.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344A74
Deuteranopia (green-blind)
#284271
Tritanopia (blue-blind)
#005157
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f4772;
/* rgb */ color: rgb(31, 71, 114);
/* oklch */ color: oklch(39.2% 0.086 252.3);
Tailwind
colors: {
  custom: {
    50: '#66799b',
    500: '#1f4772',
    950: '#000000',
  },
}
SCSS
$custom: #1f4772;
$custom-light: #66799b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4772",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 114
  },
  "hsl": {
    "h": 211.084,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.39173,
    "c": 0.08605,
    "h": 252.3
  },
  "luminance": 0.06013
}

Semantic roles & 50–950 ramp

primary
#1F4772
secondary
#A67847
accent
#9747E0
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#06090E
muted
#7A7B7E

Preview Lab

Preview with #1F4772

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

Preview Lab → · Contrast checker → · Palette generator →

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