#1F417A#1F417A

#1F417A is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.3% C 0.105 H 260.1°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#1F417A
RGBrgb(31, 65, 122)
HSLhsl(218, 59%, 30%)
HSVhsv(218, 75%, 48%)
CMYKcmyk(74.6%, 46.7%, 0%, 52.2%)
CIE-LABlab(28.05, 8.85, -36.11)
CIE-LCHlch(28.05, 37.18, 283.76°)
OKLaboklab(38.25% -0.018 -0.1034)
OKLCHoklch(38.25% 0.105 260.1)
XYZxyz(5.9670, 5.4764, 19.1512)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F417A #7A581F
analogous
#1F6F7A #1F417A #2A1F7A
triadic
#1F417A #7A1F41 #417A1F
tetradic
#1F417A #7A1F6F #7A581F #1F7A2A
square
#1F417A #7A1F6F #7A581F #1F7A2A
split-complementary
#1F417A #7A2A1F #6F7A1F
monochromatic
#060D18 #132749 #1F417A #2B5BAB #4478CF

Accessibility & contrast

On white

10.02
#1F417A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#1F417A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F417A
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F417A#FFFFFF#000000##FFFFFF
##1F417A1.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24477C
Deuteranopia (green-blind)
#123E79
Tritanopia (blue-blind)
#004E57
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1f417a;
/* rgb */ color: rgb(31, 65, 122);
/* oklch */ color: oklch(38.3% 0.105 260.1);
Tailwind
colors: {
  custom: {
    50: '#6775a1',
    500: '#1f417a',
    950: '#000000',
  },
}
SCSS
$custom: #1f417a;
$custom-light: #6775a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f417a",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 122
  },
  "hsl": {
    "h": 217.582,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.38252,
    "c": 0.10494,
    "h": 260.1
  },
  "luminance": 0.05477
}

Semantic roles & 50–950 ramp

primary
#1F417A
secondary
#AD8747
accent
#A845E3
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07080F
muted
#7A7B7E

Preview Lab

Preview with #1F417A

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

Preview Lab → · Contrast checker → · Palette generator →

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