#1F475F#1F475F

#1F475F is a dark, moderate cyan. Relative luminance 0.056; OKLCH L 38.1% C 0.061 H 237.7°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#1F475F
RGBrgb(31, 71, 95)
HSLhsl(203, 51%, 25%)
HSVhsv(203, 67%, 37%)
CMYKcmyk(67.4%, 25.3%, 0%, 62.7%)
CIE-LABlab(28.44, -5.68, -18.33)
CIE-LCHlch(28.44, 19.19, 252.77°)
OKLaboklab(38.06% -0.0325 -0.0514)
OKLCHoklch(38.06% 0.061 237.7)
XYZxyz(4.8831, 5.6235, 11.6524)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F475F #5F371F
analogous
#1F5F57 #1F475F #1F275F
triadic
#1F475F #5F1F47 #475F1F
tetradic
#1F475F #571F5F #5F371F #275F1F
square
#1F475F #571F5F #5F371F #275F1F
split-complementary
#1F475F #5F1F27 #5F571F
monochromatic
#081117 #102531 #1F475F #2E698D #3D8CBB

Accessibility & contrast

On white

9.88
#1F475F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#1F475F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F475F
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F475F#FFFFFF#000000##FFFFFF
##1F475F1.009.882.129.88
#FFFFFF9.881.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C4760
Deuteranopia (green-blind)
#33405F
Tritanopia (blue-blind)
#004D4F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f475f;
/* rgb */ color: rgb(31, 71, 95);
/* oklch */ color: oklch(38.1% 0.061 237.7);
Tailwind
colors: {
  custom: {
    50: '#627a8c',
    500: '#1f475f',
    950: '#000000',
  },
}
SCSS
$custom: #1f475f;
$custom-light: #627a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f475f",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 95
  },
  "hsl": {
    "h": 202.5,
    "s": 50.794,
    "l": 24.706
  },
  "oklch": {
    "l": 0.38056,
    "c": 0.06086,
    "h": 237.7
  },
  "luminance": 0.05624
}

Semantic roles & 50–950 ramp

primary
#1F475F
secondary
#946346
accent
#824EDA
background
#F6F7F8
surface
#EBEDF0
border
#C6C8CB
text
#05090C
muted
#7A7B7D

Preview Lab

Preview with #1F475F

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

Preview Lab → · Contrast checker → · Palette generator →

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