#1F4F72#1F4F72

#1F4F72 is a dark, moderate cyan. Relative luminance 0.071; OKLCH L 41.2% C 0.078 H 243.5°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#1F4F72
RGBrgb(31, 79, 114)
HSLhsl(205, 57%, 28%)
HSVhsv(205, 73%, 45%)
CMYKcmyk(72.8%, 30.7%, 0%, 55.3%)
CIE-LABlab(32.03, -3.63, -24.78)
CIE-LCHlch(32.03, 25.04, 261.66°)
OKLaboklab(41.21% -0.0349 -0.07)
OKLCHoklch(41.21% 0.078 243.5)
XYZxyz(6.3972, 7.0975, 16.9491)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4F72 #72421F
analogous
#1F726B #1F4F72 #1F2672
triadic
#1F4F72 #721F4F #4F721F
tetradic
#1F4F72 #6B1F72 #72421F #26721F
square
#1F4F72 #6B1F72 #72421F #26721F
split-complementary
#1F4F72 #721F26 #726B1F
monochromatic
#071118 #122E42 #1F4F72 #2C70A2 #4091CB

Accessibility & contrast

On white

8.68
#1F4F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#1F4F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4F72
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4F72#FFFFFF#000000##FFFFFF
##1F4F721.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5074
Deuteranopia (green-blind)
#344871
Tritanopia (blue-blind)
#00585B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1f4f72;
/* rgb */ color: rgb(31, 79, 114);
/* oklch */ color: oklch(41.2% 0.078 243.5);
Tailwind
colors: {
  custom: {
    50: '#66809a',
    500: '#1f4f72',
    950: '#000000',
  },
}
SCSS
$custom: #1f4f72;
$custom-light: #66809a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4f72",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 114
  },
  "hsl": {
    "h": 205.301,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41206,
    "c": 0.07821,
    "h": 243.5
  },
  "luminance": 0.07098
}

Semantic roles & 50–950 ramp

primary
#1F4F72
secondary
#A66F47
accent
#8847E0
background
#F6F7F9
surface
#EBEEF2
border
#C6C9CC
text
#060A0E
muted
#7A7C7E

Preview Lab

Preview with #1F4F72

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

Preview Lab → · Contrast checker → · Palette generator →

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