#1F409F#1F409F

#1F409F is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.0% C 0.159 H 265.2°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#1F409F
RGBrgb(31, 64, 159)
HSLhsl(225, 67%, 37%)
HSVhsv(225, 81%, 62%)
CMYKcmyk(80.5%, 59.7%, 0%, 37.6%)
CIE-LABlab(30.55, 24.31, -54.88)
CIE-LCHlch(30.55, 60.03, 293.89°)
OKLaboklab(41.03% -0.0132 -0.1586)
OKLCHoklch(41.03% 0.159 265.2)
XYZxyz(8.6543, 6.4603, 33.5850)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F409F #9F7E1F
analogous
#1F809F #1F409F #3E1F9F
triadic
#1F409F #9F1F40 #409F1F
tetradic
#1F409F #9F1F80 #9F7E1F #1F9F3E
square
#1F409F #9F1F80 #9F7E1F #1F9F3E
split-complementary
#1F409F #9F3E1F #809F1F
monochromatic
#0B1739 #152B6C #1F409F #2955D2 #5A7CDF

Accessibility & contrast

On white

9.16
#1F409F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F409F
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F409F#FFFFFF#000000##FFFFFF
##1F409F1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA2
Deuteranopia (green-blind)
#00429D
Tritanopia (blue-blind)
#005869
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f409f;
/* rgb */ color: rgb(31, 64, 159);
/* oklch */ color: oklch(41.0% 0.159 265.2);
Tailwind
colors: {
  custom: {
    50: '#7174bc',
    500: '#1f409f',
    950: '#000000',
  },
}
SCSS
$custom: #1f409f;
$custom-light: #7174bc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f409f",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 159
  },
  "hsl": {
    "h": 224.531,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41026,
    "c": 0.15916,
    "h": 265.2
  },
  "luminance": 0.06461
}

Semantic roles & 50–950 ramp

primary
#1F409F
secondary
#C3A757
accent
#BE3EEA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1F409F

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

Preview Lab → · Contrast checker → · Palette generator →

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