#1F498A#1F498A

#1F498A is a dark, moderate blue. Relative luminance 0.069; OKLCH L 41.3% C 0.118 H 259.0°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#1F498A
RGBrgb(31, 73, 138)
HSLhsl(216, 63%, 33%)
HSVhsv(216, 78%, 54%)
CMYKcmyk(77.5%, 47.1%, 0%, 45.9%)
CIE-LABlab(31.56, 9.79, -40.43)
CIE-LCHlch(31.56, 41.60, 283.62°)
OKLaboklab(41.3% -0.0225 -0.1159)
OKLCHoklch(41.3% 0.118 259)
XYZxyz(7.5334, 6.8905, 24.9728)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F498A #8A601F
analogous
#1F7E8A #1F498A #2B1F8A
triadic
#1F498A #8A1F49 #498A1F
tetradic
#1F498A #8A1F7E #8A601F #1F8A2B
square
#1F498A #8A1F7E #8A601F #1F8A2B
split-complementary
#1F498A #8A2B1F #7E8A1F
monochromatic
#091426 #142F58 #1F498A #2A63BC #4C83D7

Accessibility & contrast

On white

8.83
#1F498A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F498A
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F498A#FFFFFF#000000##FFFFFF
##1F498A1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274F8C
Deuteranopia (green-blind)
#0E4689
Tritanopia (blue-blind)
#005862
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f498a;
/* rgb */ color: rgb(31, 73, 138);
/* oklch */ color: oklch(41.3% 0.118 259.0);
Tailwind
colors: {
  custom: {
    50: '#6b7bad',
    500: '#1f498a',
    950: '#000000',
  },
}
SCSS
$custom: #1f498a;
$custom-light: #6b7bad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f498a",
  "rgb": {
    "r": 31,
    "g": 73,
    "b": 138
  },
  "hsl": {
    "h": 216.449,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.41297,
    "c": 0.1181,
    "h": 259
  },
  "luminance": 0.06891
}

Semantic roles & 50–950 ramp

primary
#1F498A
secondary
#BA8E4B
accent
#A641E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1F498A

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

Preview Lab → · Contrast checker → · Palette generator →

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