#1F488D#1F488D

#1F488D is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.3% C 0.124 H 260.2°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#1F488D
RGBrgb(31, 72, 141)
HSLhsl(218, 64%, 34%)
HSVhsv(218, 78%, 55%)
CMYKcmyk(78%, 48.9%, 0%, 44.7%)
CIE-LABlab(31.46, 11.68, -42.43)
CIE-LCHlch(31.46, 44.01, 285.39°)
OKLaboklab(41.29% -0.0211 -0.1218)
OKLCHoklch(41.29% 0.124 260.2)
XYZxyz(7.6884, 6.8482, 26.1108)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F488D #8D641F
analogous
#1F7F8D #1F488D #2D1F8D
triadic
#1F488D #8D1F48 #488D1F
tetradic
#1F488D #8D1F7F #8D641F #1F8D2D
square
#1F488D #8D1F7F #8D641F #1F8D2D
split-complementary
#1F488D #8D2D1F #7F8D1F
monochromatic
#091529 #142E5B #1F488D #2A62BF #4E82D8

Accessibility & contrast

On white

8.86
#1F488D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#1F488D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F488D
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F488D#FFFFFF#000000##FFFFFF
##1F488D1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224F90
Deuteranopia (green-blind)
#00458C
Tritanopia (blue-blind)
#005863
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f488d;
/* rgb */ color: rgb(31, 72, 141);
/* oklch */ color: oklch(41.3% 0.124 260.2);
Tailwind
colors: {
  custom: {
    50: '#6c7aaf',
    500: '#1f488d',
    950: '#000000',
  },
}
SCSS
$custom: #1f488d;
$custom-light: #6c7aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#1f488d",
  "rgb": {
    "r": 31,
    "g": 72,
    "b": 141
  },
  "hsl": {
    "h": 217.636,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.41287,
    "c": 0.12365,
    "h": 260.2
  },
  "luminance": 0.06849
}

Semantic roles & 50–950 ramp

primary
#1F488D
secondary
#BB924D
accent
#A941E7
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1F488D

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

Preview Lab → · Contrast checker → · Palette generator →

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