#1F4698#1F4698

#1F4698 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.7% C 0.142 H 262.7°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#1F4698
RGBrgb(31, 70, 152)
HSLhsl(221, 66%, 36%)
HSVhsv(221, 80%, 60%)
CMYKcmyk(79.6%, 53.9%, 0%, 40.4%)
CIE-LABlab(31.66, 17.45, -48.82)
CIE-LCHlch(31.66, 51.84, 289.67°)
OKLaboklab(41.7% -0.018 -0.1407)
OKLCHoklch(41.7% 0.142 262.7)
XYZxyz(8.4207, 6.9376, 30.5950)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4698 #98711F
analogous
#1F8298 #1F4698 #341F98
triadic
#1F4698 #981F46 #46981F
tetradic
#1F4698 #981F82 #98711F #1F9834
square
#1F4698 #981F82 #98711F #1F9834
split-complementary
#1F4698 #98341F #82981F
monochromatic
#0A1732 #152F65 #1F4698 #295DCB #5581DC

Accessibility & contrast

On white

8.79
#1F4698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#1F4698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4698
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4698#FFFFFF#000000##FFFFFF
##1F46981.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07509B
Deuteranopia (green-blind)
#004596
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f4698;
/* rgb */ color: rgb(31, 70, 152);
/* oklch */ color: oklch(41.7% 0.142 262.7);
Tailwind
colors: {
  custom: {
    50: '#6e78b7',
    500: '#1f4698',
    950: '#000000',
  },
}
SCSS
$custom: #1f4698;
$custom-light: #6e78b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4698",
  "rgb": {
    "r": 31,
    "g": 70,
    "b": 152
  },
  "hsl": {
    "h": 220.661,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.41696,
    "c": 0.14182,
    "h": 262.7
  },
  "luminance": 0.06939
}

Semantic roles & 50–950 ramp

primary
#1F4698
secondary
#C09D53
accent
#B23FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4698

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

Preview Lab → · Contrast checker → · Palette generator →

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