#1F477F#1F477F

#1F477F is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.0% C 0.105 H 257.4°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#1F477F
RGBrgb(31, 71, 127)
HSLhsl(215, 61%, 31%)
HSVhsv(215, 76%, 50%)
CMYKcmyk(75.6%, 44.1%, 0%, 50.2%)
CIE-LABlab(30.23, 6.74, -35.75)
CIE-LCHlch(30.23, 36.38, 280.68°)
OKLaboklab(40.04% -0.0228 -0.1022)
OKLCHoklch(40.04% 0.105 257.4)
XYZxyz(6.6477, 6.3294, 20.9459)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F477F #7F571F
analogous
#1F777F #1F477F #271F7F
triadic
#1F477F #7F1F47 #477F1F
tetradic
#1F477F #7F1F77 #7F571F #1F7F27
square
#1F477F #7F1F77 #7F571F #1F7F27
split-complementary
#1F477F #7F271F #777F1F
monochromatic
#07101D #132B4E #1F477F #2B63B0 #4681D2

Accessibility & contrast

On white

9.27
#1F477F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#1F477F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F477F
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F477F#FFFFFF#000000##FFFFFF
##1F477F1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f477f;
/* rgb */ color: rgb(31, 71, 127);
/* oklch */ color: oklch(40.0% 0.105 257.4);
Tailwind
colors: {
  custom: {
    50: '#6879a4',
    500: '#1f477f',
    950: '#000000',
  },
}
SCSS
$custom: #1f477f;
$custom-light: #6879a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f477f",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 127
  },
  "hsl": {
    "h": 215,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.4004,
    "c": 0.10474,
    "h": 257.4
  },
  "luminance": 0.0633
}

Semantic roles & 50–950 ramp

primary
#1F477F
secondary
#B28648
accent
#A144E4
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #1F477F

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

Preview Lab → · Contrast checker → · Palette generator →

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