#1F408A#1F408A

#1F408A is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.3% C 0.130 H 263.5°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#1F408A
RGBrgb(31, 64, 138)
HSLhsl(221, 63%, 33%)
HSVhsv(221, 78%, 54%)
CMYKcmyk(77.5%, 53.6%, 0%, 45.9%)
CIE-LABlab(28.88, 15.97, -44.74)
CIE-LCHlch(28.88, 47.50, 289.64°)
OKLaboklab(39.25% -0.0147 -0.1288)
OKLCHoklch(39.25% 0.13 263.5)
XYZxyz(6.9843, 5.7923, 24.7898)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F408A #8A691F
analogous
#1F758A #1F408A #331F8A
triadic
#1F408A #8A1F40 #408A1F
tetradic
#1F408A #8A1F75 #8A691F #1F8A33
square
#1F408A #8A1F75 #8A691F #1F8A33
split-complementary
#1F408A #8A331F #758A1F
monochromatic
#091226 #142958 #1F408A #2A57BC #4C77D7

Accessibility & contrast

On white

9.73
#1F408A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#1F408A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F408A
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F408A#FFFFFF#000000##FFFFFF
##1F408A1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D498D
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#00525E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f408a;
/* rgb */ color: rgb(31, 64, 138);
/* oklch */ color: oklch(39.3% 0.130 263.5);
Tailwind
colors: {
  custom: {
    50: '#6b74ad',
    500: '#1f408a',
    950: '#000000',
  },
}
SCSS
$custom: #1f408a;
$custom-light: #6b74ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f408a",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 138
  },
  "hsl": {
    "h": 221.495,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3925,
    "c": 0.12964,
    "h": 263.5
  },
  "luminance": 0.05793
}

Semantic roles & 50–950 ramp

primary
#1F408A
secondary
#BA984B
accent
#B341E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1F408A

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

Preview Lab → · Contrast checker → · Palette generator →

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