#1F479E#1F479E

#1F479E is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.4% C 0.149 H 263.0°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#1F479E
RGBrgb(31, 71, 158)
HSLhsl(221, 67%, 37%)
HSVhsv(221, 80%, 62%)
CMYKcmyk(80.4%, 55.1%, 0%, 38%)
CIE-LABlab(32.40, 19.16, -51.25)
CIE-LCHlch(32.40, 54.72, 290.49°)
OKLaboklab(42.4% -0.0181 -0.1478)
OKLCHoklch(42.4% 0.149 263)
XYZxyz(8.9877, 7.2653, 33.2698)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F479E #9E761F
analogous
#1F879E #1F479E #361F9E
triadic
#1F479E #9E1F47 #479E1F
tetradic
#1F479E #9E1F87 #9E761F #1F9E36
square
#1F479E #9E1F87 #9E761F #1F9E36
split-complementary
#1F479E #9E361F #879E1F
monochromatic
#0B1938 #15306B #1F479E #295ED1 #5983DE

Accessibility & contrast

On white

8.56
#1F479E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#1F479E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F479E
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F479E#FFFFFF#000000##FFFFFF
##1F479E1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A1
Deuteranopia (green-blind)
#00479C
Tritanopia (blue-blind)
#005C6B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f479e;
/* rgb */ color: rgb(31, 71, 158);
/* oklch */ color: oklch(42.4% 0.149 263.0);
Tailwind
colors: {
  custom: {
    50: '#7079bb',
    500: '#1f479e',
    950: '#000000',
  },
}
SCSS
$custom: #1f479e;
$custom-light: #7079bb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f479e",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 158
  },
  "hsl": {
    "h": 221.102,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.424,
    "c": 0.14894,
    "h": 263
  },
  "luminance": 0.07266
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F479E

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

Preview Lab → · Contrast checker → · Palette generator →

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