#1F4899#1F4899

#1F4899 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.2% C 0.141 H 262.1°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#1F4899
RGBrgb(31, 72, 153)
HSLhsl(220, 66%, 36%)
HSVhsv(220, 80%, 60%)
CMYKcmyk(79.7%, 52.9%, 0%, 40%)
CIE-LABlab(32.31, 16.48, -48.37)
CIE-LCHlch(32.31, 51.10, 288.82°)
OKLaboklab(42.21% -0.0194 -0.1393)
OKLCHoklch(42.21% 0.141 262.1)
XYZxyz(8.6301, 7.2249, 31.0705)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4899 #99701F
analogous
#1F8599 #1F4899 #331F99
triadic
#1F4899 #991F48 #48991F
tetradic
#1F4899 #991F85 #99701F #1F9933
square
#1F4899 #991F85 #99701F #1F9933
split-complementary
#1F4899 #99331F #85991F
monochromatic
#0A1833 #153066 #1F4899 #2960CC #5683DD

Accessibility & contrast

On white

8.59
#1F4899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#1F4899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4899
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4899#FFFFFF#000000##FFFFFF
##1F48991.008.592.458.59
#FFFFFF8.591.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10529C
Deuteranopia (green-blind)
#004797
Tritanopia (blue-blind)
#005C69
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f4899;
/* rgb */ color: rgb(31, 72, 153);
/* oklch */ color: oklch(42.2% 0.141 262.1);
Tailwind
colors: {
  custom: {
    50: '#6f7ab8',
    500: '#1f4899',
    950: '#000000',
  },
}
SCSS
$custom: #1f4899;
$custom-light: #6f7ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4899",
  "rgb": {
    "r": 31,
    "g": 72,
    "b": 153
  },
  "hsl": {
    "h": 219.836,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42213,
    "c": 0.14067,
    "h": 262.1
  },
  "luminance": 0.07226
}

Semantic roles & 50–950 ramp

primary
#1F4899
secondary
#C09C54
accent
#B03FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4899

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

Preview Lab → · Contrast checker → · Palette generator →

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