#1F478D#1F478D

#1F478D is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.1% C 0.125 H 260.7°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#1F478D
RGBrgb(31, 71, 141)
HSLhsl(218, 64%, 34%)
HSVhsv(218, 78%, 55%)
CMYKcmyk(78%, 49.6%, 0%, 44.7%)
CIE-LABlab(31.16, 12.36, -42.91)
CIE-LCHlch(31.16, 44.65, 286.07°)
OKLaboklab(41.06% -0.0202 -0.1233)
OKLCHoklch(41.06% 0.125 260.7)
XYZxyz(7.6243, 6.7200, 26.0894)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F478D #8D651F
analogous
#1F7E8D #1F478D #2E1F8D
triadic
#1F478D #8D1F47 #478D1F
tetradic
#1F478D #8D1F7E #8D651F #1F8D2E
square
#1F478D #8D1F7E #8D651F #1F8D2E
split-complementary
#1F478D #8D2E1F #7E8D1F
monochromatic
#091429 #142E5B #1F478D #2A60BF #4E80D8

Accessibility & contrast

On white

8.96
#1F478D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#1F478D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F478D
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F478D#FFFFFF#000000##FFFFFF
##1F478D1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4F90
Deuteranopia (green-blind)
#00458C
Tritanopia (blue-blind)
#005863
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1f478d;
/* rgb */ color: rgb(31, 71, 141);
/* oklch */ color: oklch(41.1% 0.125 260.7);
Tailwind
colors: {
  custom: {
    50: '#6c79af',
    500: '#1f478d',
    950: '#000000',
  },
}
SCSS
$custom: #1f478d;
$custom-light: #6c79af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f478d",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 141
  },
  "hsl": {
    "h": 218.182,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.41058,
    "c": 0.12493,
    "h": 260.7
  },
  "luminance": 0.06721
}

Semantic roles & 50–950 ramp

primary
#1F478D
secondary
#BB934D
accent
#AB41E7
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1F478D

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

Preview Lab → · Contrast checker → · Palette generator →

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