#1F498D#1F498D

#1F498D is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.5% C 0.122 H 259.7°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#1F498D
RGBrgb(31, 73, 141)
HSLhsl(217, 64%, 34%)
HSVhsv(217, 78%, 55%)
CMYKcmyk(78%, 48.2%, 0%, 44.7%)
CIE-LABlab(31.76, 11.00, -41.95)
CIE-LCHlch(31.76, 43.37, 284.69°)
OKLaboklab(41.52% -0.0219 -0.1204)
OKLCHoklch(41.52% 0.122 259.7)
XYZxyz(7.7536, 6.9786, 26.1325)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F498D #8D631F
analogous
#1F808D #1F498D #2C1F8D
triadic
#1F498D #8D1F49 #498D1F
tetradic
#1F498D #8D1F80 #8D631F #1F8D2C
square
#1F498D #8D1F80 #8D631F #1F8D2C
split-complementary
#1F498D #8D2C1F #808D1F
monochromatic
#091529 #142F5B #1F498D #2A63BF #4E83D8

Accessibility & contrast

On white

8.77
#1F498D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#1F498D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F498D
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F498D#FFFFFF#000000##FFFFFF
##1F498D1.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245090
Deuteranopia (green-blind)
#05468C
Tritanopia (blue-blind)
#005964
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1f498d;
/* rgb */ color: rgb(31, 73, 141);
/* oklch */ color: oklch(41.5% 0.122 259.7);
Tailwind
colors: {
  custom: {
    50: '#6c7baf',
    500: '#1f498d',
    950: '#000000',
  },
}
SCSS
$custom: #1f498d;
$custom-light: #6c7baf;
$custom-dark: #000000;
JSON
{
  "hex": "#1f498d",
  "rgb": {
    "r": 31,
    "g": 73,
    "b": 141
  },
  "hsl": {
    "h": 217.091,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.41517,
    "c": 0.12239,
    "h": 259.7
  },
  "luminance": 0.06979
}

Semantic roles & 50–950 ramp

primary
#1F498D
secondary
#BB914D
accent
#A841E7
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1F498D

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

Preview Lab → · Contrast checker → · Palette generator →

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