#1F3FAE#1F3FAE

#1F3FAE is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.2% C 0.181 H 266.0°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#1F3FAE
RGBrgb(31, 63, 174)
HSLhsl(227, 70%, 40%)
HSVhsv(227, 82%, 68%)
CMYKcmyk(82.2%, 63.8%, 0%, 31.8%)
CIE-LABlab(31.58, 30.80, -62.20)
CIE-LCHlch(31.58, 69.41, 296.34°)
OKLaboklab(42.2% -0.0125 -0.1801)
OKLCHoklch(42.2% 0.181 266)
XYZxyz(9.9799, 6.9011, 40.8423)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3FAE #AE8E1F
analogous
#1F87AE #1F3FAE #461FAE
triadic
#1F3FAE #AE1F3F #3FAE1F
tetradic
#1F3FAE #AE1F87 #AE8E1F #1FAE46
square
#1F3FAE #AE1F87 #AE8E1F #1FAE46
split-complementary
#1F3FAE #AE461F #87AE1F
monochromatic
#0C1946 #162C7A #1F3FAE #3056DA #6481E3

Accessibility & contrast

On white

8.82
#1F3FAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#1F3FAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3FAE
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3FAE#FFFFFF#000000##FFFFFF
##1F3FAE1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B2
Deuteranopia (green-blind)
#0044AC
Tritanopia (blue-blind)
#005C70
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f3fae;
/* rgb */ color: rgb(31, 63, 174);
/* oklch */ color: oklch(42.2% 0.181 266.0);
Tailwind
colors: {
  custom: {
    50: '#7573c7',
    500: '#1f3fae',
    950: '#000000',
  },
}
SCSS
$custom: #1f3fae;
$custom-light: #7573c7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3fae",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 174
  },
  "hsl": {
    "h": 226.573,
    "s": 69.756,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42198,
    "c": 0.18051,
    "h": 266
  },
  "luminance": 0.06902
}

Semantic roles & 50–950 ramp

primary
#1F3FAE
secondary
#C8B160
accent
#C53BED
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #1F3FAE

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

Preview Lab → · Contrast checker → · Palette generator →

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