#1F4776#1F4776

#1F4776 is a dark, moderate cyan. Relative luminance 0.061; OKLCH L 39.4% C 0.092 H 254.2°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#1F4776
RGBrgb(31, 71, 118)
HSLhsl(212, 58%, 29%)
HSVhsv(212, 74%, 46%)
CMYKcmyk(73.7%, 39.8%, 0%, 53.7%)
CIE-LABlab(29.68, 3.17, -31.00)
CIE-LCHlch(29.68, 31.16, 275.83°)
OKLaboklab(39.43% -0.025 -0.0883)
OKLCHoklch(39.43% 0.092 254.2)
XYZxyz(6.0871, 6.1051, 17.9936)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4776 #764E1F
analogous
#1F7376 #1F4776 #231F76
triadic
#1F4776 #761F47 #47761F
tetradic
#1F4776 #761F73 #764E1F #1F7623
square
#1F4776 #761F73 #764E1F #1F7623
split-complementary
#1F4776 #76231F #73761F
monochromatic
#060F18 #122A46 #1F4776 #2C64A6 #4282CD

Accessibility & contrast

On white

9.45
#1F4776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#1F4776 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4776
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4776#FFFFFF#000000##FFFFFF
##1F47761.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314A78
Deuteranopia (green-blind)
#244275
Tritanopia (blue-blind)
#005258
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f4776;
/* rgb */ color: rgb(31, 71, 118);
/* oklch */ color: oklch(39.4% 0.092 254.2);
Tailwind
colors: {
  custom: {
    50: '#66799e',
    500: '#1f4776',
    950: '#000000',
  },
}
SCSS
$custom: #1f4776;
$custom-light: #66799e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4776",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 118
  },
  "hsl": {
    "h": 212.414,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.39431,
    "c": 0.09176,
    "h": 254.2
  },
  "luminance": 0.06106
}

Semantic roles & 50–950 ramp

primary
#1F4776
secondary
#AA7C47
accent
#9A46E2
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#06090E
muted
#7A7B7E

Preview Lab

Preview with #1F4776

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

Preview Lab → · Contrast checker → · Palette generator →

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