#1F4F82#1F4F82

#1F4F82 is a dark, moderate cyan. Relative luminance 0.075; OKLCH L 42.2% C 0.100 H 252.5°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#1F4F82
RGBrgb(31, 79, 130)
HSLhsl(211, 61%, 32%)
HSVhsv(211, 76%, 51%)
CMYKcmyk(76.2%, 39.2%, 0%, 49%)
CIE-LABlab(32.91, 2.59, -33.34)
CIE-LCHlch(32.91, 33.44, 274.44°)
OKLaboklab(42.18% -0.03 -0.095)
OKLCHoklch(42.18% 0.1 252.5)
XYZxyz(7.3888, 7.4941, 22.1719)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4F82 #82521F
analogous
#1F8182 #1F4F82 #201F82
triadic
#1F4F82 #821F4F #4F821F
tetradic
#1F4F82 #821F81 #82521F #1F8220
square
#1F4F82 #821F81 #82521F #1F8220
split-complementary
#1F4F82 #82201F #81821F
monochromatic
#07131F #133151 #1F4F82 #2B6DB3 #488CD3

Accessibility & contrast

On white

8.40
#1F4F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#1F4F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4F82
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4F82#FFFFFF#000000##FFFFFF
##1F4F821.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375284
Deuteranopia (green-blind)
#284981
Tritanopia (blue-blind)
#005B62
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f4f82;
/* rgb */ color: rgb(31, 79, 130);
/* oklch */ color: oklch(42.2% 0.100 252.5);
Tailwind
colors: {
  custom: {
    50: '#697fa6',
    500: '#1f4f82',
    950: '#000000',
  },
}
SCSS
$custom: #1f4f82;
$custom-light: #697fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4f82",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 130
  },
  "hsl": {
    "h": 210.909,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42183,
    "c": 0.09963,
    "h": 252.5
  },
  "luminance": 0.07495
}

Semantic roles & 50–950 ramp

primary
#1F4F82
secondary
#B58048
accent
#9643E5
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A0F
muted
#7A7C7F

Preview Lab

Preview with #1F4F82

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

Preview Lab → · Contrast checker → · Palette generator →

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