#1F4898#1F4898

#1F4898 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.1% C 0.139 H 262.0°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#1F4898
RGBrgb(31, 72, 152)
HSLhsl(220, 66%, 36%)
HSVhsv(220, 80%, 60%)
CMYKcmyk(79.6%, 52.6%, 0%, 40.4%)
CIE-LABlab(32.24, 16.08, -47.88)
CIE-LCHlch(32.24, 50.51, 288.57°)
OKLaboklab(42.13% -0.0195 -0.1379)
OKLCHoklch(42.13% 0.139 262)
XYZxyz(8.5479, 7.1920, 30.6374)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4898 #986F1F
analogous
#1F8498 #1F4898 #321F98
triadic
#1F4898 #981F48 #48981F
tetradic
#1F4898 #981F84 #986F1F #1F9832
square
#1F4898 #981F84 #986F1F #1F9832
split-complementary
#1F4898 #98321F #84981F
monochromatic
#0A1832 #153065 #1F4898 #2960CB #5583DC

Accessibility & contrast

On white

8.61
#1F4898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#1F4898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4898
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4898#FFFFFF#000000##FFFFFF
##1F48981.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12529B
Deuteranopia (green-blind)
#004796
Tritanopia (blue-blind)
#005B69
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f4898;
/* rgb */ color: rgb(31, 72, 152);
/* oklch */ color: oklch(42.1% 0.139 262.0);
Tailwind
colors: {
  custom: {
    50: '#6e7ab7',
    500: '#1f4898',
    950: '#000000',
  },
}
SCSS
$custom: #1f4898;
$custom-light: #6e7ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4898",
  "rgb": {
    "r": 31,
    "g": 72,
    "b": 152
  },
  "hsl": {
    "h": 219.669,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.42134,
    "c": 0.13927,
    "h": 262
  },
  "luminance": 0.07193
}

Semantic roles & 50–950 ramp

primary
#1F4898
secondary
#C09B53
accent
#AF3FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4898

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

Preview Lab → · Contrast checker → · Palette generator →

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