#1F417D#1F417D

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

Color values

HEX#1F417D
RGBrgb(31, 65, 125)
HSLhsl(218, 60%, 31%)
HSVhsv(218, 75%, 49%)
CMYKcmyk(75.2%, 48%, 0%, 51%)
CIE-LABlab(28.25, 10.05, -37.67)
CIE-LCHlch(28.25, 38.98, 284.94°)
OKLaboklab(38.47% -0.0175 -0.108)
OKLCHoklch(38.47% 0.109 260.8)
XYZxyz(6.1557, 5.5519, 20.1453)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F417D #7D5B1F
analogous
#1F707D #1F417D #2C1F7D
triadic
#1F417D #7D1F41 #417D1F
tetradic
#1F417D #7D1F70 #7D5B1F #1F7D2C
square
#1F417D #7D1F70 #7D5B1F #1F7D2C
split-complementary
#1F417D #7D2C1F #707D1F
monochromatic
#070E1B #13274C #1F417D #2B5AAE #4578D1

Accessibility & contrast

On white

9.95
#1F417D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#1F417D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F417D
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F417D#FFFFFF#000000##FFFFFF
##1F417D1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22477F
Deuteranopia (green-blind)
#0C3F7C
Tritanopia (blue-blind)
#004F59
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f417d;
/* rgb */ color: rgb(31, 65, 125);
/* oklch */ color: oklch(38.5% 0.109 260.8);
Tailwind
colors: {
  custom: {
    50: '#6875a3',
    500: '#1f417d',
    950: '#000000',
  },
}
SCSS
$custom: #1f417d;
$custom-light: #6875a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f417d",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 125
  },
  "hsl": {
    "h": 218.298,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38472,
    "c": 0.10936,
    "h": 260.8
  },
  "luminance": 0.05553
}

Semantic roles & 50–950 ramp

primary
#1F417D
secondary
#B08A48
accent
#AA44E3
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1F417D

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

Preview Lab → · Contrast checker → · Palette generator →

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