#1F417B#1F417B

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

Color values

HEX#1F417B
RGBrgb(31, 65, 123)
HSLhsl(218, 60%, 30%)
HSVhsv(218, 75%, 48%)
CMYKcmyk(74.8%, 47.2%, 0%, 51.8%)
CIE-LABlab(28.12, 9.25, -36.63)
CIE-LCHlch(28.12, 37.78, 284.17°)
OKLaboklab(38.32% -0.0178 -0.1049)
OKLCHoklch(38.32% 0.106 260.4)
XYZxyz(6.0292, 5.5013, 19.4792)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F417B #7B591F
analogous
#1F6F7B #1F417B #2B1F7B
triadic
#1F417B #7B1F41 #417B1F
tetradic
#1F417B #7B1F6F #7B591F #1F7B2B
square
#1F417B #7B1F6F #7B591F #1F7B2B
split-complementary
#1F417B #7B2B1F #6F7B1F
monochromatic
#060D19 #13274A #1F417B #2B5BAC #4478D0

Accessibility & contrast

On white

10.00
#1F417B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F417B
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F417B#FFFFFF#000000##FFFFFF
##1F417B1.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23477D
Deuteranopia (green-blind)
#103E7A
Tritanopia (blue-blind)
#004F58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1f417b;
/* rgb */ color: rgb(31, 65, 123);
/* oklch */ color: oklch(38.3% 0.106 260.4);
Tailwind
colors: {
  custom: {
    50: '#6875a1',
    500: '#1f417b',
    950: '#000000',
  },
}
SCSS
$custom: #1f417b;
$custom-light: #6875a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f417b",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 123
  },
  "hsl": {
    "h": 217.826,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.38325,
    "c": 0.10641,
    "h": 260.4
  },
  "luminance": 0.05502
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F417B

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

Preview Lab → · Contrast checker → · Palette generator →

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