#1F409E#1F409E

#1F409E is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.9% C 0.158 H 265.2°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#1F409E
RGBrgb(31, 64, 158)
HSLhsl(224, 67%, 37%)
HSVhsv(224, 80%, 62%)
CMYKcmyk(80.4%, 59.5%, 0%, 38%)
CIE-LABlab(30.46, 23.92, -54.41)
CIE-LCHlch(30.46, 59.44, 293.73°)
OKLaboklab(40.94% -0.0132 -0.1572)
OKLCHoklch(40.94% 0.158 265.2)
XYZxyz(8.5678, 6.4257, 33.1299)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F409E #9E7D1F
analogous
#1F809E #1F409E #3D1F9E
triadic
#1F409E #9E1F40 #409E1F
tetradic
#1F409E #9E1F80 #9E7D1F #1F9E3D
square
#1F409E #9E1F80 #9E7D1F #1F9E3D
split-complementary
#1F409E #9E3D1F #809E1F
monochromatic
#0B1738 #152B6B #1F409E #2955D1 #597CDE

Accessibility & contrast

On white

9.19
#1F409E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#1F409E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F409E
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F409E#FFFFFF#000000##FFFFFF
##1F409E1.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA1
Deuteranopia (green-blind)
#00429C
Tritanopia (blue-blind)
#005868
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f409e;
/* rgb */ color: rgb(31, 64, 158);
/* oklch */ color: oklch(40.9% 0.158 265.2);
Tailwind
colors: {
  custom: {
    50: '#7074bb',
    500: '#1f409e',
    950: '#000000',
  },
}
SCSS
$custom: #1f409e;
$custom-light: #7074bb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f409e",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 158
  },
  "hsl": {
    "h": 224.409,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40938,
    "c": 0.15779,
    "h": 265.2
  },
  "luminance": 0.06427
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F409E

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

Preview Lab → · Contrast checker → · Palette generator →

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