#1F408E#1F408E

#1F408E is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.6% C 0.135 H 263.9°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#1F408E
RGBrgb(31, 64, 142)
HSLhsl(222, 64%, 34%)
HSVhsv(222, 78%, 56%)
CMYKcmyk(78.2%, 54.9%, 0%, 44.3%)
CIE-LABlab(29.18, 17.57, -46.72)
CIE-LCHlch(29.18, 49.91, 290.61°)
OKLaboklab(39.57% -0.0143 -0.1346)
OKLCHoklch(39.57% 0.135 263.9)
XYZxyz(7.2792, 5.9103, 26.3431)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F408E #8E6D1F
analogous
#1F788E #1F408E #361F8E
triadic
#1F408E #8E1F40 #408E1F
tetradic
#1F408E #8E1F78 #8E6D1F #1F8E36
square
#1F408E #8E1F78 #8E6D1F #1F8E36
split-complementary
#1F408E #8E361F #788E1F
monochromatic
#09132A #14295C #1F408E #2A57C0 #4F78D9

Accessibility & contrast

On white

9.62
#1F408E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F408E
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F408E#FFFFFF#000000##FFFFFF
##1F408E1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024A91
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f408e;
/* rgb */ color: rgb(31, 64, 142);
/* oklch */ color: oklch(39.6% 0.135 263.9);
Tailwind
colors: {
  custom: {
    50: '#6c74b0',
    500: '#1f408e',
    950: '#000000',
  },
}
SCSS
$custom: #1f408e;
$custom-light: #6c74b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f408e",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 142
  },
  "hsl": {
    "h": 222.162,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39575,
    "c": 0.13538,
    "h": 263.9
  },
  "luminance": 0.05911
}

Semantic roles & 50–950 ramp

primary
#1F408E
secondary
#BB9B4D
accent
#B641E7
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #1F408E

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

Preview Lab → · Contrast checker → · Palette generator →

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