#1F4C82#1F4C82

#1F4C82 is a dark, moderate cyan. Relative luminance 0.071; OKLCH L 41.5% C 0.103 H 254.8°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#1F4C82
RGBrgb(31, 76, 130)
HSLhsl(213, 61%, 32%)
HSVhsv(213, 76%, 51%)
CMYKcmyk(76.2%, 41.5%, 0%, 49%)
CIE-LABlab(31.97, 4.58, -34.84)
CIE-LCHlch(31.97, 35.14, 277.49°)
OKLaboklab(41.45% -0.027 -0.0994)
OKLCHoklch(41.45% 0.103 254.8)
XYZxyz(7.1773, 7.0711, 22.1014)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4C82 #82551F
analogous
#1F7E82 #1F4C82 #231F82
triadic
#1F4C82 #821F4C #4C821F
tetradic
#1F4C82 #821F7E #82551F #1F8223
square
#1F4C82 #821F7E #82551F #1F8223
split-complementary
#1F4C82 #82231F #7E821F
monochromatic
#07121F #132F51 #1F4C82 #2B69B3 #4887D3

Accessibility & contrast

On white

8.70
#1F4C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#1F4C82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4C82
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4C82#FFFFFF#000000##FFFFFF
##1F4C821.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325084
Deuteranopia (green-blind)
#224781
Tritanopia (blue-blind)
#005960
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1f4c82;
/* rgb */ color: rgb(31, 76, 130);
/* oklch */ color: oklch(41.5% 0.103 254.8);
Tailwind
colors: {
  custom: {
    50: '#697da6',
    500: '#1f4c82',
    950: '#000000',
  },
}
SCSS
$custom: #1f4c82;
$custom-light: #697da6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4c82",
  "rgb": {
    "r": 31,
    "g": 76,
    "b": 130
  },
  "hsl": {
    "h": 212.727,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.41452,
    "c": 0.10305,
    "h": 254.8
  },
  "luminance": 0.07072
}

Semantic roles & 50–950 ramp

primary
#1F4C82
secondary
#B58348
accent
#9B43E5
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #1F4C82

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

Preview Lab → · Contrast checker → · Palette generator →

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