#1F408F#1F408F

#1F408F is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.7% C 0.137 H 264.0°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#1F408F
RGBrgb(31, 64, 143)
HSLhsl(222, 64%, 34%)
HSVhsv(222, 78%, 56%)
CMYKcmyk(78.3%, 55.2%, 0%, 43.9%)
CIE-LABlab(29.26, 17.97, -47.21)
CIE-LCHlch(29.26, 50.51, 290.84°)
OKLaboklab(39.66% -0.0142 -0.1361)
OKLCHoklch(39.66% 0.137 264)
XYZxyz(7.3546, 5.9404, 26.7403)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F408F #8F6E1F
analogous
#1F788F #1F408F #361F8F
triadic
#1F408F #8F1F40 #408F1F
tetradic
#1F408F #8F1F78 #8F6E1F #1F8F36
square
#1F408F #8F1F78 #8F6E1F #1F8F36
split-complementary
#1F408F #8F361F #788F1F
monochromatic
#09132A #14295D #1F408F #2A57C1 #4F78D9

Accessibility & contrast

On white

9.60
#1F408F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#1F408F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F408F
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F408F#FFFFFF#000000##FFFFFF
##1F408F1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f408f;
/* rgb */ color: rgb(31, 64, 143);
/* oklch */ color: oklch(39.7% 0.137 264.0);
Tailwind
colors: {
  custom: {
    50: '#6d74b0',
    500: '#1f408f',
    950: '#000000',
  },
}
SCSS
$custom: #1f408f;
$custom-light: #6d74b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f408f",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 143
  },
  "hsl": {
    "h": 222.321,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39658,
    "c": 0.1368,
    "h": 264
  },
  "luminance": 0.05941
}

Semantic roles & 50–950 ramp

primary
#1F408F
secondary
#BC9B4E
accent
#B640E7
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F408F

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

Preview Lab → · Contrast checker → · Palette generator →

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