#1F478F#1F478F

#1F478F is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.2% C 0.128 H 261.0°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#1F478F
RGBrgb(31, 71, 143)
HSLhsl(219, 64%, 34%)
HSVhsv(219, 78%, 56%)
CMYKcmyk(78.3%, 50.3%, 0%, 43.9%)
CIE-LABlab(31.30, 13.16, -43.91)
CIE-LCHlch(31.30, 45.84, 286.68°)
OKLaboklab(41.21% -0.0199 -0.1262)
OKLCHoklch(41.21% 0.128 261)
XYZxyz(7.7744, 6.7801, 26.8802)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F478F #8F671F
analogous
#1F7F8F #1F478F #2F1F8F
triadic
#1F478F #8F1F47 #478F1F
tetradic
#1F478F #8F1F7F #8F671F #1F8F2F
square
#1F478F #8F1F7F #8F671F #1F8F2F
split-complementary
#1F478F #8F2F1F #7F8F1F
monochromatic
#09152A #142E5D #1F478F #2A60C1 #4F81D9

Accessibility & contrast

On white

8.91
#1F478F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#1F478F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F478F
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F478F#FFFFFF#000000##FFFFFF
##1F478F1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4F92
Deuteranopia (green-blind)
#00458E
Tritanopia (blue-blind)
#005864
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f478f;
/* rgb */ color: rgb(31, 71, 143);
/* oklch */ color: oklch(41.2% 0.128 261.0);
Tailwind
colors: {
  custom: {
    50: '#6c79b0',
    500: '#1f478f',
    950: '#000000',
  },
}
SCSS
$custom: #1f478f;
$custom-light: #6c79b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f478f",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 143
  },
  "hsl": {
    "h": 218.571,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.41211,
    "c": 0.12778,
    "h": 261
  },
  "luminance": 0.06781
}

Semantic roles & 50–950 ramp

primary
#1F478F
secondary
#BC954E
accent
#AC40E7
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #1F478F

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

Preview Lab → · Contrast checker → · Palette generator →

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