#1F4889#1F4889

#1F4889 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 41.0% C 0.118 H 259.4°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#1F4889
RGBrgb(31, 72, 137)
HSLhsl(217, 63%, 33%)
HSVhsv(217, 77%, 54%)
CMYKcmyk(77.4%, 47.4%, 0%, 46.3%)
CIE-LABlab(31.19, 10.07, -40.41)
CIE-LCHlch(31.19, 41.64, 284.00°)
OKLaboklab(40.99% -0.0218 -0.1159)
OKLCHoklch(40.99% 0.118 259.4)
XYZxyz(7.3962, 6.7313, 24.5715)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4889 #89601F
analogous
#1F7D89 #1F4889 #2B1F89
triadic
#1F4889 #891F48 #48891F
tetradic
#1F4889 #891F7D #89601F #1F892B
square
#1F4889 #891F7D #89601F #1F892B
split-complementary
#1F4889 #892B1F #7D891F
monochromatic
#081425 #142E57 #1F4889 #2A62BB #4C82D6

Accessibility & contrast

On white

8.95
#1F4889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#1F4889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4889
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4889#FFFFFF#000000##FFFFFF
##1F48891.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264F8B
Deuteranopia (green-blind)
#0C4588
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1f4889;
/* rgb */ color: rgb(31, 72, 137);
/* oklch */ color: oklch(41.0% 0.118 259.4);
Tailwind
colors: {
  custom: {
    50: '#6b7aac',
    500: '#1f4889',
    950: '#000000',
  },
}
SCSS
$custom: #1f4889;
$custom-light: #6b7aac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4889",
  "rgb": {
    "r": 31,
    "g": 72,
    "b": 137
  },
  "hsl": {
    "h": 216.792,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.40991,
    "c": 0.11792,
    "h": 259.4
  },
  "luminance": 0.06732
}

Semantic roles & 50–950 ramp

primary
#1F4889
secondary
#B98E4B
accent
#A742E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #1F4889

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

Preview Lab → · Contrast checker → · Palette generator →

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