#1F4F91#1F4F91

#1F4F91 is a dark, vivid cyan. Relative luminance 0.079; OKLCH L 43.2% C 0.121 H 257.3°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#1F4F91
RGBrgb(31, 79, 145)
HSLhsl(215, 65%, 35%)
HSVhsv(215, 79%, 57%)
CMYKcmyk(78.6%, 45.5%, 0%, 43.1%)
CIE-LABlab(33.83, 8.55, -41.07)
CIE-LCHlch(33.83, 41.95, 281.76°)
OKLaboklab(43.2% -0.0265 -0.1177)
OKLCHoklch(43.2% 0.121 257.3)
XYZxyz(8.4700, 7.9266, 27.8662)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4F91 #91611F
analogous
#1F8891 #1F4F91 #281F91
triadic
#1F4F91 #911F4F #4F911F
tetradic
#1F4F91 #911F88 #91611F #1F9128
square
#1F4F91 #911F88 #91611F #1F9128
split-complementary
#1F4F91 #91281F #88911F
monochromatic
#09182C #14345F #1F4F91 #2A6AC3 #518ADA

Accessibility & contrast

On white

8.12
#1F4F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#1F4F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4F91
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4F91#FFFFFF#000000##FFFFFF
##1F4F911.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5594
Deuteranopia (green-blind)
#164B90
Tritanopia (blue-blind)
#005F69
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1f4f91;
/* rgb */ color: rgb(31, 79, 145);
/* oklch */ color: oklch(43.2% 0.121 257.3);
Tailwind
colors: {
  custom: {
    50: '#6c7fb2',
    500: '#1f4f91',
    950: '#000000',
  },
}
SCSS
$custom: #1f4f91;
$custom-light: #6c7fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4f91",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 145
  },
  "hsl": {
    "h": 214.737,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.432,
    "c": 0.12063,
    "h": 257.3
  },
  "luminance": 0.07928
}

Semantic roles & 50–950 ramp

primary
#1F4F91
secondary
#BD8F4F
accent
#A140E8
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #1F4F91

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

Preview Lab → · Contrast checker → · Palette generator →

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