#1F409A#1F409A

#1F409A is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.6% C 0.152 H 264.9°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#1F409A
RGBrgb(31, 64, 154)
HSLhsl(224, 66%, 36%)
HSVhsv(224, 80%, 60%)
CMYKcmyk(79.9%, 58.4%, 0%, 39.6%)
CIE-LABlab(30.13, 22.34, -52.52)
CIE-LCHlch(30.13, 57.08, 293.05°)
OKLaboklab(40.59% -0.0134 -0.1517)
OKLCHoklch(40.59% 0.152 264.9)
XYZxyz(8.2291, 6.2902, 31.3460)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F409A #9A791F
analogous
#1F7E9A #1F409A #3C1F9A
triadic
#1F409A #9A1F40 #409A1F
tetradic
#1F409A #9A1F7E #9A791F #1F9A3C
square
#1F409A #9A1F7E #9A791F #1F9A3C
split-complementary
#1F409A #9A3C1F #7E9A1F
monochromatic
#0A1634 #152B67 #1F409A #2955CD #567ADD

Accessibility & contrast

On white

9.30
#1F409A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#1F409A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F409A
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F409A#FFFFFF#000000##FFFFFF
##1F409A1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9D
Deuteranopia (green-blind)
#004198
Tritanopia (blue-blind)
#005766
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f409a;
/* rgb */ color: rgb(31, 64, 154);
/* oklch */ color: oklch(40.6% 0.152 264.9);
Tailwind
colors: {
  custom: {
    50: '#6f74b9',
    500: '#1f409a',
    950: '#000000',
  },
}
SCSS
$custom: #1f409a;
$custom-light: #6f74b9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f409a",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 154
  },
  "hsl": {
    "h": 223.902,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40589,
    "c": 0.15226,
    "h": 264.9
  },
  "luminance": 0.06291
}

Semantic roles & 50–950 ramp

primary
#1F409A
secondary
#C1A454
accent
#BC3EE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #1F409A

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

Preview Lab → · Contrast checker → · Palette generator →

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