#1F477E#1F477E

#1F477E is a dark, moderate cyan. Relative luminance 0.063; OKLCH L 40.0% C 0.103 H 257.1°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#1F477E
RGBrgb(31, 71, 126)
HSLhsl(215, 61%, 31%)
HSVhsv(215, 75%, 49%)
CMYKcmyk(75.4%, 43.7%, 0%, 50.6%)
CIE-LABlab(30.17, 6.35, -35.23)
CIE-LCHlch(30.17, 35.79, 280.21°)
OKLaboklab(39.97% -0.0231 -0.1007)
OKLCHoklch(39.97% 0.103 257.1)
XYZxyz(6.5828, 6.3034, 20.6044)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F477E #7E561F
analogous
#1F767E #1F477E #261F7E
triadic
#1F477E #7E1F47 #477E1F
tetradic
#1F477E #7E1F76 #7E561F #1F7E26
square
#1F477E #7E1F76 #7E561F #1F7E26
split-complementary
#1F477E #7E261F #767E1F
monochromatic
#07101C #132B4D #1F477E #2B63AF #4681D1

Accessibility & contrast

On white

9.29
#1F477E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F477E
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F477E#FFFFFF#000000##FFFFFF
##1F477E1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f477e;
/* rgb */ color: rgb(31, 71, 126);
/* oklch */ color: oklch(40.0% 0.103 257.1);
Tailwind
colors: {
  custom: {
    50: '#6879a4',
    500: '#1f477e',
    950: '#000000',
  },
}
SCSS
$custom: #1f477e;
$custom-light: #6879a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f477e",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 126
  },
  "hsl": {
    "h": 214.737,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3997,
    "c": 0.10329,
    "h": 257.1
  },
  "luminance": 0.06304
}

Semantic roles & 50–950 ramp

primary
#1F477E
secondary
#B18548
accent
#A044E4
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #1F477E

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

Preview Lab → · Contrast checker → · Palette generator →

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