#1F478C#1F478C

#1F478C is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.0% C 0.123 H 260.5°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#1F478C
RGBrgb(31, 71, 140)
HSLhsl(218, 64%, 34%)
HSVhsv(218, 78%, 55%)
CMYKcmyk(77.9%, 49.3%, 0%, 45.1%)
CIE-LABlab(31.09, 11.96, -42.41)
CIE-LCHlch(31.09, 44.06, 285.74°)
OKLaboklab(40.98% -0.0204 -0.1218)
OKLCHoklch(40.98% 0.123 260.5)
XYZxyz(7.5502, 6.6904, 25.6993)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F478C #8C641F
analogous
#1F7D8C #1F478C #2D1F8C
triadic
#1F478C #8C1F47 #478C1F
tetradic
#1F478C #8C1F7D #8C641F #1F8C2D
square
#1F478C #8C1F7D #8C641F #1F8C2D
split-complementary
#1F478C #8C2D1F #7D8C1F
monochromatic
#091428 #142E5A #1F478C #2A60BE #4E80D8

Accessibility & contrast

On white

8.98
#1F478C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F478C
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F478C#FFFFFF#000000##FFFFFF
##1F478C1.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204E8F
Deuteranopia (green-blind)
#00448B
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1f478c;
/* rgb */ color: rgb(31, 71, 140);
/* oklch */ color: oklch(41.0% 0.123 260.5);
Tailwind
colors: {
  custom: {
    50: '#6b79ae',
    500: '#1f478c',
    950: '#000000',
  },
}
SCSS
$custom: #1f478c;
$custom-light: #6b79ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f478c",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 140
  },
  "hsl": {
    "h": 217.982,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.40983,
    "c": 0.12349,
    "h": 260.5
  },
  "luminance": 0.06691
}

Semantic roles & 50–950 ramp

primary
#1F478C
secondary
#BB924C
accent
#AA41E7
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1F478C

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

Preview Lab → · Contrast checker → · Palette generator →

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