#1F4F87#1F4F87

#1F4F87 is a dark, moderate cyan. Relative luminance 0.076; OKLCH L 42.5% C 0.107 H 254.4°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#1F4F87
RGBrgb(31, 79, 135)
HSLhsl(212, 63%, 33%)
HSVhsv(212, 77%, 53%)
CMYKcmyk(77%, 41.5%, 0%, 47.1%)
CIE-LABlab(33.20, 4.57, -35.95)
CIE-LCHlch(33.20, 36.24, 277.24°)
OKLaboklab(42.51% -0.0287 -0.1027)
OKLCHoklch(42.51% 0.107 254.4)
XYZxyz(7.7326, 7.6317, 23.9825)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4F87 #87571F
analogous
#1F8387 #1F4F87 #231F87
triadic
#1F4F87 #871F4F #4F871F
tetradic
#1F4F87 #871F83 #87571F #1F8723
square
#1F4F87 #871F83 #87571F #1F8723
split-complementary
#1F4F87 #87231F #83871F
monochromatic
#081523 #143255 #1F4F87 #2A6CB9 #4B8BD6

Accessibility & contrast

On white

8.31
#1F4F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#1F4F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4F87
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4F87#FFFFFF#000000##FFFFFF
##1F4F871.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345389
Deuteranopia (green-blind)
#234A86
Tritanopia (blue-blind)
#005C64
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f4f87;
/* rgb */ color: rgb(31, 79, 135);
/* oklch */ color: oklch(42.5% 0.107 254.4);
Tailwind
colors: {
  custom: {
    50: '#6a7faa',
    500: '#1f4f87',
    950: '#000000',
  },
}
SCSS
$custom: #1f4f87;
$custom-light: #6a7faa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4f87",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 135
  },
  "hsl": {
    "h": 212.308,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.42512,
    "c": 0.1066,
    "h": 254.4
  },
  "luminance": 0.07633
}

Semantic roles & 50–950 ramp

primary
#1F4F87
secondary
#B8854A
accent
#9A42E6
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A10
muted
#7A7C7F

Preview Lab

Preview with #1F4F87

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

Preview Lab → · Contrast checker → · Palette generator →

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