#1F409D#1F409D

#1F409D is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.8% C 0.156 H 265.1°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#1F409D
RGBrgb(31, 64, 157)
HSLhsl(224, 67%, 37%)
HSVhsv(224, 80%, 62%)
CMYKcmyk(80.3%, 59.2%, 0%, 38.4%)
CIE-LABlab(30.38, 23.53, -53.94)
CIE-LCHlch(30.38, 58.85, 293.57°)
OKLaboklab(40.85% -0.0133 -0.1558)
OKLCHoklch(40.85% 0.156 265.1)
XYZxyz(8.4821, 6.3914, 32.6784)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F409D #9D7C1F
analogous
#1F7F9D #1F409D #3D1F9D
triadic
#1F409D #9D1F40 #409D1F
tetradic
#1F409D #9D1F7F #9D7C1F #1F9D3D
square
#1F409D #9D1F7F #9D7C1F #1F9D3D
split-complementary
#1F409D #9D3D1F #7F9D1F
monochromatic
#0B1637 #152B6A #1F409D #2955D0 #587BDE

Accessibility & contrast

On white

9.22
#1F409D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#1F409D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F409D
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F409D#FFFFFF#000000##FFFFFF
##1F409D1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA0
Deuteranopia (green-blind)
#00429B
Tritanopia (blue-blind)
#005768
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f409d;
/* rgb */ color: rgb(31, 64, 157);
/* oklch */ color: oklch(40.8% 0.156 265.1);
Tailwind
colors: {
  custom: {
    50: '#7074bb',
    500: '#1f409d',
    950: '#000000',
  },
}
SCSS
$custom: #1f409d;
$custom-light: #7074bb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f409d",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 157
  },
  "hsl": {
    "h": 224.286,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.4085,
    "c": 0.15641,
    "h": 265.1
  },
  "luminance": 0.06392
}

Semantic roles & 50–950 ramp

primary
#1F409D
secondary
#C2A656
accent
#BD3EEA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1F409D

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

Preview Lab → · Contrast checker → · Palette generator →

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