#1F4774#1F4774

#1F4774 is a dark, moderate cyan. Relative luminance 0.061; OKLCH L 39.3% C 0.089 H 253.3°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#1F4774
RGBrgb(31, 71, 116)
HSLhsl(212, 58%, 29%)
HSVhsv(212, 73%, 45%)
CMYKcmyk(73.3%, 38.8%, 0%, 54.5%)
CIE-LABlab(29.56, 2.38, -29.93)
CIE-LCHlch(29.56, 30.02, 274.54°)
OKLaboklab(39.3% -0.0256 -0.0851)
OKLCHoklch(39.3% 0.089 253.3)
XYZxyz(5.9695, 6.0581, 17.3743)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4774 #744C1F
analogous
#1F7274 #1F4774 #221F74
triadic
#1F4774 #741F47 #47741F
tetradic
#1F4774 #741F72 #744C1F #1F7422
square
#1F4774 #741F72 #744C1F #1F7422
split-complementary
#1F4774 #74221F #72741F
monochromatic
#060F18 #122944 #1F4774 #2C65A4 #4183CC

Accessibility & contrast

On white

9.49
#1F4774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#1F4774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4774
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4774#FFFFFF#000000##FFFFFF
##1F47741.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334A76
Deuteranopia (green-blind)
#264273
Tritanopia (blue-blind)
#005258
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f4774;
/* rgb */ color: rgb(31, 71, 116);
/* oklch */ color: oklch(39.3% 0.089 253.3);
Tailwind
colors: {
  custom: {
    50: '#66799c',
    500: '#1f4774',
    950: '#000000',
  },
}
SCSS
$custom: #1f4774;
$custom-light: #66799c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4774",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 116
  },
  "hsl": {
    "h": 211.765,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.39301,
    "c": 0.0889,
    "h": 253.3
  },
  "luminance": 0.06059
}

Semantic roles & 50–950 ramp

primary
#1F4774
secondary
#A87A47
accent
#9847E1
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#06090E
muted
#7A7B7E

Preview Lab

Preview with #1F4774

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

Preview Lab → · Contrast checker → · Palette generator →

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