#1F408C#1F408C

#1F408C is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.4% C 0.133 H 263.7°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#1F408C
RGBrgb(31, 64, 140)
HSLhsl(222, 64%, 34%)
HSVhsv(222, 78%, 55%)
CMYKcmyk(77.9%, 54.3%, 0%, 45.1%)
CIE-LABlab(29.03, 16.77, -45.73)
CIE-LCHlch(29.03, 48.71, 290.14°)
OKLaboklab(39.41% -0.0145 -0.1317)
OKLCHoklch(39.41% 0.133 263.7)
XYZxyz(7.1304, 5.8507, 25.5594)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F408C #8C6B1F
analogous
#1F768C #1F408C #341F8C
triadic
#1F408C #8C1F40 #408C1F
tetradic
#1F408C #8C1F76 #8C6B1F #1F8C34
square
#1F408C #8C1F76 #8C6B1F #1F8C34
split-complementary
#1F408C #8C341F #768C1F
monochromatic
#091228 #14295A #1F408C #2A57BE #4E77D8

Accessibility & contrast

On white

9.68
#1F408C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#1F408C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F408C
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F408C#FFFFFF#000000##FFFFFF
##1F408C1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f408c;
/* rgb */ color: rgb(31, 64, 140);
/* oklch */ color: oklch(39.4% 0.133 263.7);
Tailwind
colors: {
  custom: {
    50: '#6c74ae',
    500: '#1f408c',
    950: '#000000',
  },
}
SCSS
$custom: #1f408c;
$custom-light: #6c74ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f408c",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 140
  },
  "hsl": {
    "h": 221.835,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39412,
    "c": 0.13251,
    "h": 263.7
  },
  "luminance": 0.05852
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F408C

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

Preview Lab → · Contrast checker → · Palette generator →

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