#1F4E84#1F4E84

#1F4E84 is a dark, moderate cyan. Relative luminance 0.074; OKLCH L 42.1% C 0.104 H 254.0°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#1F4E84
RGBrgb(31, 78, 132)
HSLhsl(212, 62%, 32%)
HSVhsv(212, 77%, 52%)
CMYKcmyk(76.5%, 40.9%, 0%, 48.2%)
CIE-LABlab(32.71, 4.04, -34.89)
CIE-LCHlch(32.71, 35.12, 276.61°)
OKLaboklab(42.07% -0.0285 -0.0995)
OKLCHoklch(42.07% 0.104 254)
XYZxyz(7.4528, 7.4052, 22.8619)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E84 #84551F
analogous
#1F8184 #1F4E84 #231F84
triadic
#1F4E84 #841F4E #4E841F
tetradic
#1F4E84 #841F81 #84551F #1F8423
square
#1F4E84 #841F81 #84551F #1F8423
split-complementary
#1F4E84 #84231F #81841F
monochromatic
#081321 #133152 #1F4E84 #2B6BB6 #498AD4

Accessibility & contrast

On white

8.46
#1F4E84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#1F4E84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E84
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E84#FFFFFF#000000##FFFFFF
##1F4E841.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f4e84;
/* rgb */ color: rgb(31, 78, 132);
/* oklch */ color: oklch(42.1% 0.104 254.0);
Tailwind
colors: {
  custom: {
    50: '#697fa8',
    500: '#1f4e84',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e84;
$custom-light: #697fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e84",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 132
  },
  "hsl": {
    "h": 212.079,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.4207,
    "c": 0.10354,
    "h": 254
  },
  "luminance": 0.07406
}

Semantic roles & 50–950 ramp

primary
#1F4E84
secondary
#B78348
accent
#9A43E5
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A0F
muted
#7A7C7F

Preview Lab

Preview with #1F4E84

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

Preview Lab → · Contrast checker → · Palette generator →

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