#1F47A6#1F47A6

#1F47A6 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.1% C 0.160 H 263.7°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#1F47A6
RGBrgb(31, 71, 166)
HSLhsl(222, 69%, 39%)
HSVhsv(222, 81%, 65%)
CMYKcmyk(81.3%, 57.2%, 0%, 34.9%)
CIE-LABlab(33.03, 22.32, -55.05)
CIE-LCHlch(33.03, 59.41, 292.07°)
OKLaboklab(43.07% -0.0175 -0.159)
OKLCHoklch(43.07% 0.16 263.7)
XYZxyz(9.6988, 7.5498, 37.0151)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F47A6 #A67E1F
analogous
#1F8AA6 #1F47A6 #3A1FA6
triadic
#1F47A6 #A61F47 #47A61F
tetradic
#1F47A6 #A61F8A #A67E1F #1FA63A
square
#1F47A6 #A61F8A #A67E1F #1FA63A
split-complementary
#1F47A6 #A63A1F #8AA61F
monochromatic
#0C1B3F #153172 #1F47A6 #2B5ED7 #5E85E1

Accessibility & contrast

On white

8.37
#1F47A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#1F47A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F47A6
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F47A6#FFFFFF#000000##FFFFFF
##1F47A61.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A9
Deuteranopia (green-blind)
#0048A4
Tritanopia (blue-blind)
#005F6F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f47a6;
/* rgb */ color: rgb(31, 71, 166);
/* oklch */ color: oklch(43.1% 0.160 263.7);
Tailwind
colors: {
  custom: {
    50: '#7279c1',
    500: '#1f47a6',
    950: '#000000',
  },
}
SCSS
$custom: #1f47a6;
$custom-light: #7279c1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f47a6",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 166
  },
  "hsl": {
    "h": 222.222,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.43068,
    "c": 0.15996,
    "h": 263.7
  },
  "luminance": 0.07551
}

Semantic roles & 50–950 ramp

primary
#1F47A6
secondary
#C5A65B
accent
#B83CEB
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F47A6

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

Preview Lab → · Contrast checker → · Palette generator →

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