#1F4B89#1F4B89

#1F4B89 is a dark, moderate blue. Relative luminance 0.071; OKLCH L 41.7% C 0.114 H 257.6°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#1F4B89
RGBrgb(31, 75, 137)
HSLhsl(215, 63%, 33%)
HSVhsv(215, 77%, 54%)
CMYKcmyk(77.4%, 45.3%, 0%, 46.3%)
CIE-LABlab(32.10, 8.04, -38.95)
CIE-LCHlch(32.10, 39.77, 281.66°)
OKLaboklab(41.69% -0.0245 -0.1115)
OKLCHoklch(41.69% 0.114 257.6)
XYZxyz(7.5949, 7.1287, 24.6378)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4B89 #895D1F
analogous
#1F8089 #1F4B89 #281F89
triadic
#1F4B89 #891F4B #4B891F
tetradic
#1F4B89 #891F80 #895D1F #1F8928
square
#1F4B89 #891F80 #895D1F #1F8928
split-complementary
#1F4B89 #89281F #80891F
monochromatic
#081425 #143057 #1F4B89 #2A66BB #4C85D6

Accessibility & contrast

On white

8.66
#1F4B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#1F4B89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4B89
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4B89#FFFFFF#000000##FFFFFF
##1F4B891.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C518B
Deuteranopia (green-blind)
#174788
Tritanopia (blue-blind)
#005A63
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1f4b89;
/* rgb */ color: rgb(31, 75, 137);
/* oklch */ color: oklch(41.7% 0.114 257.6);
Tailwind
colors: {
  custom: {
    50: '#6b7cac',
    500: '#1f4b89',
    950: '#000000',
  },
}
SCSS
$custom: #1f4b89;
$custom-light: #6b7cac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4b89",
  "rgb": {
    "r": 31,
    "g": 75,
    "b": 137
  },
  "hsl": {
    "h": 215.094,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.41694,
    "c": 0.1142,
    "h": 257.6
  },
  "luminance": 0.0713
}

Semantic roles & 50–950 ramp

primary
#1F4B89
secondary
#B98B4B
accent
#A242E6
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #1F4B89

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

Preview Lab → · Contrast checker → · Palette generator →

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