#1F408B#1F408B

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

Color values

HEX#1F408B
RGBrgb(31, 64, 139)
HSLhsl(222, 64%, 33%)
HSVhsv(222, 78%, 55%)
CMYKcmyk(77.7%, 54%, 0%, 45.5%)
CIE-LABlab(28.96, 16.37, -45.24)
CIE-LCHlch(28.96, 48.11, 289.89°)
OKLaboklab(39.33% -0.0146 -0.1303)
OKLCHoklch(39.33% 0.131 263.6)
XYZxyz(7.0570, 5.8214, 25.1728)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F408B #8B6A1F
analogous
#1F768B #1F408B #341F8B
triadic
#1F408B #8B1F40 #408B1F
tetradic
#1F408B #8B1F76 #8B6A1F #1F8B34
square
#1F408B #8B1F76 #8B6A1F #1F8B34
split-complementary
#1F408B #8B341F #768B1F
monochromatic
#091227 #142959 #1F408B #2A57BD #4D77D7

Accessibility & contrast

On white

9.70
#1F408B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F408B
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F408B#FFFFFF#000000##FFFFFF
##1F408B1.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A498E
Deuteranopia (green-blind)
#00408A
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f408b;
/* rgb */ color: rgb(31, 64, 139);
/* oklch */ color: oklch(39.3% 0.131 263.6);
Tailwind
colors: {
  custom: {
    50: '#6c74ad',
    500: '#1f408b',
    950: '#000000',
  },
}
SCSS
$custom: #1f408b;
$custom-light: #6c74ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f408b",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 139
  },
  "hsl": {
    "h": 221.667,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39331,
    "c": 0.13107,
    "h": 263.6
  },
  "luminance": 0.05822
}

Semantic roles & 50–950 ramp

primary
#1F408B
secondary
#BA984C
accent
#B441E7
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1F408B

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

Preview Lab → · Contrast checker → · Palette generator →

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