#1F478E#1F478E

#1F478E is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.1% C 0.126 H 260.9°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#1F478E
RGBrgb(31, 71, 142)
HSLhsl(218, 64%, 34%)
HSVhsv(218, 78%, 56%)
CMYKcmyk(78.2%, 50%, 0%, 44.3%)
CIE-LABlab(31.23, 12.76, -43.41)
CIE-LCHlch(31.23, 45.25, 286.38°)
OKLaboklab(41.13% -0.02 -0.1247)
OKLCHoklch(41.13% 0.126 260.9)
XYZxyz(7.6990, 6.7499, 26.4830)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F478E #8E661F
analogous
#1F7F8E #1F478E #2E1F8E
triadic
#1F478E #8E1F47 #478E1F
tetradic
#1F478E #8E1F7F #8E661F #1F8E2E
square
#1F478E #8E1F7F #8E661F #1F8E2E
split-complementary
#1F478E #8E2E1F #7F8E1F
monochromatic
#09152A #142E5C #1F478E #2A60C0 #4F80D9

Accessibility & contrast

On white

8.94
#1F478E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#1F478E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F478E
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F478E#FFFFFF#000000##FFFFFF
##1F478E1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f478e;
/* rgb */ color: rgb(31, 71, 142);
/* oklch */ color: oklch(41.1% 0.126 260.9);
Tailwind
colors: {
  custom: {
    50: '#6c79b0',
    500: '#1f478e',
    950: '#000000',
  },
}
SCSS
$custom: #1f478e;
$custom-light: #6c79b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f478e",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 142
  },
  "hsl": {
    "h": 218.378,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.41134,
    "c": 0.12635,
    "h": 260.9
  },
  "luminance": 0.06751
}

Semantic roles & 50–950 ramp

primary
#1F478E
secondary
#BB944D
accent
#AB41E7
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #1F478E

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

Preview Lab → · Contrast checker → · Palette generator →

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