#1F417F#1F417F

#1F417F is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.6% C 0.112 H 261.2°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#1F417F
RGBrgb(31, 65, 127)
HSLhsl(219, 61%, 31%)
HSVhsv(219, 76%, 50%)
CMYKcmyk(75.6%, 48.8%, 0%, 50.2%)
CIE-LABlab(28.39, 10.85, -38.70)
CIE-LCHlch(28.39, 40.19, 285.67°)
OKLaboklab(38.62% -0.0171 -0.111)
OKLCHoklch(38.62% 0.112 261.2)
XYZxyz(6.2848, 5.6035, 20.8249)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F417F #7F5D1F
analogous
#1F717F #1F417F #2D1F7F
triadic
#1F417F #7F1F41 #417F1F
tetradic
#1F417F #7F1F71 #7F5D1F #1F7F2D
square
#1F417F #7F1F71 #7F5D1F #1F7F2D
split-complementary
#1F417F #7F2D1F #717F1F
monochromatic
#070F1D #13284E #1F417F #2B5AB0 #4678D2

Accessibility & contrast

On white

9.90
#1F417F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F417F
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F417F#FFFFFF#000000##FFFFFF
##1F417F1.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204881
Deuteranopia (green-blind)
#073F7E
Tritanopia (blue-blind)
#00505A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f417f;
/* rgb */ color: rgb(31, 65, 127);
/* oklch */ color: oklch(38.6% 0.112 261.2);
Tailwind
colors: {
  custom: {
    50: '#6975a4',
    500: '#1f417f',
    950: '#000000',
  },
}
SCSS
$custom: #1f417f;
$custom-light: #6975a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f417f",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 127
  },
  "hsl": {
    "h": 218.75,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38621,
    "c": 0.11231,
    "h": 261.2
  },
  "luminance": 0.05604
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F417F

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

Preview Lab → · Contrast checker → · Palette generator →

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