#1F488A#1F488A

#1F488A is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.1% C 0.119 H 259.6°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#1F488A
RGBrgb(31, 72, 138)
HSLhsl(217, 63%, 33%)
HSVhsv(217, 78%, 54%)
CMYKcmyk(77.5%, 47.8%, 0%, 45.9%)
CIE-LABlab(31.25, 10.47, -40.91)
CIE-LCHlch(31.25, 42.23, 284.36°)
OKLaboklab(41.07% -0.0216 -0.1174)
OKLCHoklch(41.07% 0.119 259.6)
XYZxyz(7.4682, 6.7602, 24.9511)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F488A #8A611F
analogous
#1F7D8A #1F488A #2B1F8A
triadic
#1F488A #8A1F48 #488A1F
tetradic
#1F488A #8A1F7D #8A611F #1F8A2B
square
#1F488A #8A1F7D #8A611F #1F8A2B
split-complementary
#1F488A #8A2B1F #7D8A1F
monochromatic
#091426 #142E58 #1F488A #2A62BC #4C82D7

Accessibility & contrast

On white

8.93
#1F488A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#1F488A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F488A
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F488A#FFFFFF#000000##FFFFFF
##1F488A1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254F8C
Deuteranopia (green-blind)
#094589
Tritanopia (blue-blind)
#005862
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f488a;
/* rgb */ color: rgb(31, 72, 138);
/* oklch */ color: oklch(41.1% 0.119 259.6);
Tailwind
colors: {
  custom: {
    50: '#6b7aad',
    500: '#1f488a',
    950: '#000000',
  },
}
SCSS
$custom: #1f488a;
$custom-light: #6b7aad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f488a",
  "rgb": {
    "r": 31,
    "g": 72,
    "b": 138
  },
  "hsl": {
    "h": 217.009,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.41065,
    "c": 0.11936,
    "h": 259.6
  },
  "luminance": 0.06761
}

Semantic roles & 50–950 ramp

primary
#1F488A
secondary
#BA8F4B
accent
#A741E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1F488A

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

Preview Lab → · Contrast checker → · Palette generator →

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