#1F4F89#1F4F89

#1F4F89 is a dark, moderate cyan. Relative luminance 0.077; OKLCH L 42.6% C 0.109 H 255.0°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#1F4F89
RGBrgb(31, 79, 137)
HSLhsl(213, 63%, 33%)
HSVhsv(213, 77%, 54%)
CMYKcmyk(77.4%, 42.3%, 0%, 46.3%)
CIE-LABlab(33.33, 5.36, -36.98)
CIE-LCHlch(33.33, 37.37, 278.25°)
OKLaboklab(42.65% -0.0282 -0.1057)
OKLCHoklch(42.65% 0.109 255)
XYZxyz(7.8747, 7.6885, 24.7311)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4F89 #89591F
analogous
#1F8489 #1F4F89 #241F89
triadic
#1F4F89 #891F4F #4F891F
tetradic
#1F4F89 #891F84 #89591F #1F8924
square
#1F4F89 #891F84 #89591F #1F8924
split-complementary
#1F4F89 #89241F #84891F
monochromatic
#081525 #143257 #1F4F89 #2A6CBB #4C8BD6

Accessibility & contrast

On white

8.27
#1F4F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#1F4F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4F89
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4F89#FFFFFF#000000##FFFFFF
##1F4F891.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33548B
Deuteranopia (green-blind)
#214A88
Tritanopia (blue-blind)
#005D65
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f4f89;
/* rgb */ color: rgb(31, 79, 137);
/* oklch */ color: oklch(42.6% 0.109 255.0);
Tailwind
colors: {
  custom: {
    50: '#6b7fac',
    500: '#1f4f89',
    950: '#000000',
  },
}
SCSS
$custom: #1f4f89;
$custom-light: #6b7fac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4f89",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 137
  },
  "hsl": {
    "h": 212.83,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.42646,
    "c": 0.1094,
    "h": 255
  },
  "luminance": 0.07689
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F4F89

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

Preview Lab → · Contrast checker → · Palette generator →

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