#1F417C#1F417C

#1F417C is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.4% C 0.108 H 260.6°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#1F417C
RGBrgb(31, 65, 124)
HSLhsl(218, 60%, 30%)
HSVhsv(218, 75%, 49%)
CMYKcmyk(75%, 47.6%, 0%, 51.4%)
CIE-LABlab(28.18, 9.65, -37.15)
CIE-LCHlch(28.18, 38.38, 284.56°)
OKLaboklab(38.4% -0.0176 -0.1064)
OKLCHoklch(38.4% 0.108 260.6)
XYZxyz(6.0922, 5.5265, 19.8105)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F417C #7C5A1F
analogous
#1F6F7C #1F417C #2C1F7C
triadic
#1F417C #7C1F41 #417C1F
tetradic
#1F417C #7C1F6F #7C5A1F #1F7C2C
square
#1F417C #7C1F6F #7C5A1F #1F7C2C
split-complementary
#1F417C #7C2C1F #6F7C1F
monochromatic
#070E1A #13274B #1F417C #2B5BAD #4578D0

Accessibility & contrast

On white

9.97
#1F417C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F417C
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F417C#FFFFFF#000000##FFFFFF
##1F417C1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23477E
Deuteranopia (green-blind)
#0E3F7B
Tritanopia (blue-blind)
#004F58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1f417c;
/* rgb */ color: rgb(31, 65, 124);
/* oklch */ color: oklch(38.4% 0.108 260.6);
Tailwind
colors: {
  custom: {
    50: '#6875a2',
    500: '#1f417c',
    950: '#000000',
  },
}
SCSS
$custom: #1f417c;
$custom-light: #6875a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f417c",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 124
  },
  "hsl": {
    "h": 218.065,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.38398,
    "c": 0.10789,
    "h": 260.6
  },
  "luminance": 0.05527
}

Semantic roles & 50–950 ramp

primary
#1F417C
secondary
#AF8948
accent
#A945E3
background
#F6F7FA
surface
#EBEDF3
border
#C6C8CD
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1F417C

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

Preview Lab → · Contrast checker → · Palette generator →

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