#1F477D#1F477D

#1F477D is a dark, moderate cyan. Relative luminance 0.063; OKLCH L 39.9% C 0.102 H 256.8°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#1F477D
RGBrgb(31, 71, 125)
HSLhsl(214, 60%, 31%)
HSVhsv(214, 75%, 49%)
CMYKcmyk(75.2%, 43.2%, 0%, 51%)
CIE-LABlab(30.10, 5.95, -34.70)
CIE-LCHlch(30.10, 35.21, 279.72°)
OKLaboklab(39.9% -0.0233 -0.0991)
OKLCHoklch(39.9% 0.102 256.8)
XYZxyz(6.5186, 6.2777, 20.2662)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F477D #7D551F
analogous
#1F767D #1F477D #261F7D
triadic
#1F477D #7D1F47 #477D1F
tetradic
#1F477D #7D1F76 #7D551F #1F7D26
square
#1F477D #7D1F76 #7D551F #1F7D26
split-complementary
#1F477D #7D261F #767D1F
monochromatic
#070F1B #132B4C #1F477D #2B63AE #4581D1

Accessibility & contrast

On white

9.31
#1F477D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#1F477D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F477D
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F477D#FFFFFF#000000##FFFFFF
##1F477D1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4C7F
Deuteranopia (green-blind)
#1D437C
Tritanopia (blue-blind)
#00545C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f477d;
/* rgb */ color: rgb(31, 71, 125);
/* oklch */ color: oklch(39.9% 0.102 256.8);
Tailwind
colors: {
  custom: {
    50: '#6879a3',
    500: '#1f477d',
    950: '#000000',
  },
}
SCSS
$custom: #1f477d;
$custom-light: #6879a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f477d",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 125
  },
  "hsl": {
    "h": 214.468,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.39901,
    "c": 0.10185,
    "h": 256.8
  },
  "luminance": 0.06278
}

Semantic roles & 50–950 ramp

primary
#1F477D
secondary
#B08448
accent
#A044E3
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #1F477D

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

Preview Lab → · Contrast checker → · Palette generator →

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