#1F47A0#1F47A0

#1F47A0 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.6% C 0.152 H 263.2°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#1F47A0
RGBrgb(31, 71, 160)
HSLhsl(221, 68%, 37%)
HSVhsv(221, 81%, 63%)
CMYKcmyk(80.6%, 55.6%, 0%, 37.3%)
CIE-LABlab(32.56, 19.95, -52.21)
CIE-LCHlch(32.56, 55.89, 290.91°)
OKLaboklab(42.57% -0.0179 -0.1506)
OKLCHoklch(42.57% 0.152 263.2)
XYZxyz(9.1612, 7.3348, 34.1838)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F47A0 #A0781F
analogous
#1F88A0 #1F47A0 #371FA0
triadic
#1F47A0 #A01F47 #47A01F
tetradic
#1F47A0 #A01F88 #A0781F #1FA037
square
#1F47A0 #A01F88 #A0781F #1FA037
split-complementary
#1F47A0 #A0371F #88A01F
monochromatic
#0B1A39 #15306D #1F47A0 #295ED3 #5A83DF

Accessibility & contrast

On white

8.51
#1F47A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#1F47A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F47A0
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F47A0#FFFFFF#000000##FFFFFF
##1F47A01.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A3
Deuteranopia (green-blind)
#00479E
Tritanopia (blue-blind)
#005D6C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f47a0;
/* rgb */ color: rgb(31, 71, 160);
/* oklch */ color: oklch(42.6% 0.152 263.2);
Tailwind
colors: {
  custom: {
    50: '#7079bd',
    500: '#1f47a0',
    950: '#000000',
  },
}
SCSS
$custom: #1f47a0;
$custom-light: #7079bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f47a0",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 160
  },
  "hsl": {
    "h": 221.395,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.42565,
    "c": 0.1517,
    "h": 263.2
  },
  "luminance": 0.07336
}

Semantic roles & 50–950 ramp

primary
#1F47A0
secondary
#C3A258
accent
#B53DEA
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F47A0

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

Preview Lab → · Contrast checker → · Palette generator →

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