#1F408D#1F408D

#1F408D is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.5% C 0.134 H 263.8°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#1F408D
RGBrgb(31, 64, 141)
HSLhsl(222, 64%, 34%)
HSVhsv(222, 78%, 55%)
CMYKcmyk(78%, 54.6%, 0%, 44.7%)
CIE-LABlab(29.11, 17.17, -46.23)
CIE-LCHlch(29.11, 49.31, 290.38°)
OKLaboklab(39.49% -0.0144 -0.1332)
OKLCHoklch(39.49% 0.134 263.8)
XYZxyz(7.2045, 5.8804, 25.9495)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F408D #8D6C1F
analogous
#1F778D #1F408D #351F8D
triadic
#1F408D #8D1F40 #408D1F
tetradic
#1F408D #8D1F77 #8D6C1F #1F8D35
square
#1F408D #8D1F77 #8D6C1F #1F8D35
split-complementary
#1F408D #8D351F #778D1F
monochromatic
#091229 #14295B #1F408D #2A57BF #4E78D8

Accessibility & contrast

On white

9.65
#1F408D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#1F408D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F408D
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F408D#FFFFFF#000000##FFFFFF
##1F408D1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054A90
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f408d;
/* rgb */ color: rgb(31, 64, 141);
/* oklch */ color: oklch(39.5% 0.134 263.8);
Tailwind
colors: {
  custom: {
    50: '#6c74af',
    500: '#1f408d',
    950: '#000000',
  },
}
SCSS
$custom: #1f408d;
$custom-light: #6c74af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f408d",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 141
  },
  "hsl": {
    "h": 222,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39493,
    "c": 0.13394,
    "h": 263.8
  },
  "luminance": 0.05881
}

Semantic roles & 50–950 ramp

primary
#1F408D
secondary
#BB9A4D
accent
#B541E7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #1F408D

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

Preview Lab → · Contrast checker → · Palette generator →

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