#1F479F#1F479F

#1F479F is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.5% C 0.150 H 263.1°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#1F479F
RGBrgb(31, 71, 159)
HSLhsl(221, 67%, 37%)
HSVhsv(221, 81%, 62%)
CMYKcmyk(80.5%, 55.3%, 0%, 37.6%)
CIE-LABlab(32.48, 19.55, -51.73)
CIE-LCHlch(32.48, 55.31, 290.71°)
OKLaboklab(42.48% -0.018 -0.1492)
OKLCHoklch(42.48% 0.15 263.1)
XYZxyz(9.0741, 7.2999, 33.7249)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F479F #9F771F
analogous
#1F879F #1F479F #371F9F
triadic
#1F479F #9F1F47 #479F1F
tetradic
#1F479F #9F1F87 #9F771F #1F9F37
square
#1F479F #9F1F87 #9F771F #1F9F37
split-complementary
#1F479F #9F371F #879F1F
monochromatic
#0B1939 #15306C #1F479F #295ED2 #5A83DF

Accessibility & contrast

On white

8.54
#1F479F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#1F479F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F479F
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F479F#FFFFFF#000000##FFFFFF
##1F479F1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A2
Deuteranopia (green-blind)
#00479D
Tritanopia (blue-blind)
#005D6C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f479f;
/* rgb */ color: rgb(31, 71, 159);
/* oklch */ color: oklch(42.5% 0.150 263.1);
Tailwind
colors: {
  custom: {
    50: '#7079bc',
    500: '#1f479f',
    950: '#000000',
  },
}
SCSS
$custom: #1f479f;
$custom-light: #7079bc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f479f",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 159
  },
  "hsl": {
    "h": 221.25,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.42483,
    "c": 0.15032,
    "h": 263.1
  },
  "luminance": 0.07301
}

Semantic roles & 50–950 ramp

primary
#1F479F
secondary
#C3A157
accent
#B43EEA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F479F

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

Preview Lab → · Contrast checker → · Palette generator →

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