#1F4E87#1F4E87

#1F4E87 is a dark, moderate cyan. Relative luminance 0.075; OKLCH L 42.3% C 0.108 H 255.1°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#1F4E87
RGBrgb(31, 78, 135)
HSLhsl(213, 63%, 33%)
HSVhsv(213, 77%, 53%)
CMYKcmyk(77%, 42.2%, 0%, 47.1%)
CIE-LABlab(32.89, 5.23, -36.44)
CIE-LCHlch(32.89, 36.82, 278.17°)
OKLaboklab(42.27% -0.0277 -0.1041)
OKLCHoklch(42.27% 0.108 255.1)
XYZxyz(7.6610, 7.4885, 23.9586)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E87 #87581F
analogous
#1F8287 #1F4E87 #241F87
triadic
#1F4E87 #871F4E #4E871F
tetradic
#1F4E87 #871F82 #87581F #1F8724
square
#1F4E87 #871F82 #87581F #1F8724
split-complementary
#1F4E87 #87241F #82871F
monochromatic
#081423 #143155 #1F4E87 #2A6BB9 #4B8AD6

Accessibility & contrast

On white

8.41
#1F4E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4E87
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E87#FFFFFF#000000##FFFFFF
##1F4E871.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335389
Deuteranopia (green-blind)
#214986
Tritanopia (blue-blind)
#005B64
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f4e87;
/* rgb */ color: rgb(31, 78, 135);
/* oklch */ color: oklch(42.3% 0.108 255.1);
Tailwind
colors: {
  custom: {
    50: '#6a7faa',
    500: '#1f4e87',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e87;
$custom-light: #6a7faa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e87",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 135
  },
  "hsl": {
    "h": 212.885,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.42271,
    "c": 0.10775,
    "h": 255.1
  },
  "luminance": 0.07489
}

Semantic roles & 50–950 ramp

primary
#1F4E87
secondary
#B8864A
accent
#9C42E6
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A10
muted
#7A7C7F

Preview Lab

Preview with #1F4E87

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

Preview Lab → · Contrast checker → · Palette generator →

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