#1F498B#1F498B

#1F498B is a dark, moderate blue. Relative luminance 0.069; OKLCH L 41.4% C 0.120 H 259.2°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#1F498B
RGBrgb(31, 73, 139)
HSLhsl(217, 64%, 33%)
HSVhsv(217, 78%, 55%)
CMYKcmyk(77.7%, 47.5%, 0%, 45.5%)
CIE-LABlab(31.62, 10.19, -40.94)
CIE-LCHlch(31.62, 42.19, 283.98°)
OKLaboklab(41.37% -0.0223 -0.1174)
OKLCHoklch(41.37% 0.12 259.2)
XYZxyz(7.6061, 6.9196, 25.3558)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F498B #8B611F
analogous
#1F7F8B #1F498B #2B1F8B
triadic
#1F498B #8B1F49 #498B1F
tetradic
#1F498B #8B1F7F #8B611F #1F8B2B
square
#1F498B #8B1F7F #8B611F #1F8B2B
split-complementary
#1F498B #8B2B1F #7F8B1F
monochromatic
#091427 #142F59 #1F498B #2A63BD #4D83D7

Accessibility & contrast

On white

8.81
#1F498B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#1F498B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F498B
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F498B#FFFFFF#000000##FFFFFF
##1F498B1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26508D
Deuteranopia (green-blind)
#0C468A
Tritanopia (blue-blind)
#005963
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f498b;
/* rgb */ color: rgb(31, 73, 139);
/* oklch */ color: oklch(41.4% 0.120 259.2);
Tailwind
colors: {
  custom: {
    50: '#6b7bad',
    500: '#1f498b',
    950: '#000000',
  },
}
SCSS
$custom: #1f498b;
$custom-light: #6b7bad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f498b",
  "rgb": {
    "r": 31,
    "g": 73,
    "b": 139
  },
  "hsl": {
    "h": 216.667,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.4137,
    "c": 0.11953,
    "h": 259.2
  },
  "luminance": 0.0692
}

Semantic roles & 50–950 ramp

primary
#1F498B
secondary
#BA8F4C
accent
#A641E7
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1F498B

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

Preview Lab → · Contrast checker → · Palette generator →

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