#1F409B#1F409B

#1F409B is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.7% C 0.154 H 265.0°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#1F409B
RGBrgb(31, 64, 155)
HSLhsl(224, 67%, 36%)
HSVhsv(224, 80%, 61%)
CMYKcmyk(80%, 58.7%, 0%, 39.2%)
CIE-LABlab(30.21, 22.74, -52.99)
CIE-LCHlch(30.21, 57.67, 293.22°)
OKLaboklab(40.68% -0.0134 -0.1531)
OKLCHoklch(40.68% 0.154 265)
XYZxyz(8.3128, 6.3237, 31.7865)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F409B #9B7A1F
analogous
#1F7E9B #1F409B #3C1F9B
triadic
#1F409B #9B1F40 #409B1F
tetradic
#1F409B #9B1F7E #9B7A1F #1F9B3C
square
#1F409B #9B1F7E #9B7A1F #1F9B3C
split-complementary
#1F409B #9B3C1F #7E9B1F
monochromatic
#0B1635 #152B68 #1F409B #2955CE #577BDD

Accessibility & contrast

On white

9.27
#1F409B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#1F409B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F409B
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F409B#FFFFFF#000000##FFFFFF
##1F409B1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9E
Deuteranopia (green-blind)
#004299
Tritanopia (blue-blind)
#005767
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f409b;
/* rgb */ color: rgb(31, 64, 155);
/* oklch */ color: oklch(40.7% 0.154 265.0);
Tailwind
colors: {
  custom: {
    50: '#7074b9',
    500: '#1f409b',
    950: '#000000',
  },
}
SCSS
$custom: #1f409b;
$custom-light: #7074b9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f409b",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 155
  },
  "hsl": {
    "h": 224.032,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40676,
    "c": 0.15365,
    "h": 265
  },
  "luminance": 0.06325
}

Semantic roles & 50–950 ramp

primary
#1F409B
secondary
#C1A455
accent
#BC3EEA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1F409B

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

Preview Lab → · Contrast checker → · Palette generator →

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