#1F417E#1F417E

#1F417E is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.5% C 0.111 H 261.0°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#1F417E
RGBrgb(31, 65, 126)
HSLhsl(219, 61%, 31%)
HSVhsv(219, 75%, 49%)
CMYKcmyk(75.4%, 48.4%, 0%, 50.6%)
CIE-LABlab(28.32, 10.45, -38.18)
CIE-LCHlch(28.32, 39.59, 285.31°)
OKLaboklab(38.55% -0.0173 -0.1095)
OKLCHoklch(38.55% 0.111 261)
XYZxyz(6.2199, 5.5776, 20.4834)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F417E #7E5C1F
analogous
#1F707E #1F417E #2C1F7E
triadic
#1F417E #7E1F41 #417E1F
tetradic
#1F417E #7E1F70 #7E5C1F #1F7E2C
square
#1F417E #7E1F70 #7E5C1F #1F7E2C
split-complementary
#1F417E #7E2C1F #707E1F
monochromatic
#070E1C #13284D #1F417E #2B5AAF #4678D1

Accessibility & contrast

On white

9.93
#1F417E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#1F417E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F417E
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F417E#FFFFFF#000000##FFFFFF
##1F417E1.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214780
Deuteranopia (green-blind)
#0A3F7D
Tritanopia (blue-blind)
#004F59
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f417e;
/* rgb */ color: rgb(31, 65, 126);
/* oklch */ color: oklch(38.5% 0.111 261.0);
Tailwind
colors: {
  custom: {
    50: '#6875a4',
    500: '#1f417e',
    950: '#000000',
  },
}
SCSS
$custom: #1f417e;
$custom-light: #6875a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f417e",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 126
  },
  "hsl": {
    "h": 218.526,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38546,
    "c": 0.11084,
    "h": 261
  },
  "luminance": 0.05578
}

Semantic roles & 50–950 ramp

primary
#1F417E
secondary
#B18B48
accent
#AB44E4
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1F417E

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

Preview Lab → · Contrast checker → · Palette generator →

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