#1F498C#1F498C

#1F498C is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.4% C 0.121 H 259.5°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#1F498C
RGBrgb(31, 73, 140)
HSLhsl(217, 64%, 34%)
HSVhsv(217, 78%, 55%)
CMYKcmyk(77.9%, 47.9%, 0%, 45.1%)
CIE-LABlab(31.69, 10.59, -41.44)
CIE-LCHlch(31.69, 42.78, 284.34°)
OKLaboklab(41.44% -0.0221 -0.1189)
OKLCHoklch(41.44% 0.121 259.5)
XYZxyz(7.6795, 6.9490, 25.7424)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F498C #8C621F
analogous
#1F7F8C #1F498C #2B1F8C
triadic
#1F498C #8C1F49 #498C1F
tetradic
#1F498C #8C1F7F #8C621F #1F8C2B
square
#1F498C #8C1F7F #8C621F #1F8C2B
split-complementary
#1F498C #8C2B1F #7F8C1F
monochromatic
#091528 #142F5A #1F498C #2A63BE #4E83D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F498C#FFFFFF#000000##FFFFFF
##1F498C1.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)
#25508F
Deuteranopia (green-blind)
#09468B
Tritanopia (blue-blind)
#005963
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1f498c;
/* rgb */ color: rgb(31, 73, 140);
/* oklch */ color: oklch(41.4% 0.121 259.5);
Tailwind
colors: {
  custom: {
    50: '#6b7bae',
    500: '#1f498c',
    950: '#000000',
  },
}
SCSS
$custom: #1f498c;
$custom-light: #6b7bae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f498c",
  "rgb": {
    "r": 31,
    "g": 73,
    "b": 140
  },
  "hsl": {
    "h": 216.881,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.41443,
    "c": 0.12096,
    "h": 259.5
  },
  "luminance": 0.0695
}

Semantic roles & 50–950 ramp

primary
#1F498C
secondary
#BB904C
accent
#A741E7
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1F498C

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

Preview Lab → · Contrast checker → · Palette generator →

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