#1F4286#1F4286

#1F4286 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.4% C 0.121 H 262.0°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#1F4286
RGBrgb(31, 66, 134)
HSLhsl(220, 62%, 32%)
HSVhsv(220, 77%, 53%)
CMYKcmyk(76.9%, 50.7%, 0%, 47.5%)
CIE-LABlab(29.18, 12.98, -41.78)
CIE-LCHlch(29.18, 43.75, 287.26°)
OKLaboklab(39.38% -0.0169 -0.1201)
OKLCHoklch(39.38% 0.121 262)
XYZxyz(6.8148, 5.9082, 23.3309)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4286 #86631F
analogous
#1F7586 #1F4286 #301F86
triadic
#1F4286 #861F42 #42861F
tetradic
#1F4286 #861F75 #86631F #1F8630
square
#1F4286 #861F75 #86631F #1F8630
split-complementary
#1F4286 #86301F #75861F
monochromatic
#081123 #142A54 #1F4286 #2A5AB8 #4A79D5

Accessibility & contrast

On white

9.63
#1F4286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#1F4286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4286
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4286#FFFFFF#000000##FFFFFF
##1F42861.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4A88
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#00525D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f4286;
/* rgb */ color: rgb(31, 66, 134);
/* oklch */ color: oklch(39.4% 0.121 262.0);
Tailwind
colors: {
  custom: {
    50: '#6a75aa',
    500: '#1f4286',
    950: '#000000',
  },
}
SCSS
$custom: #1f4286;
$custom-light: #6a75aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4286",
  "rgb": {
    "r": 31,
    "g": 66,
    "b": 134
  },
  "hsl": {
    "h": 219.612,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39384,
    "c": 0.12125,
    "h": 262
  },
  "luminance": 0.05909
}

Semantic roles & 50–950 ramp

primary
#1F4286
secondary
#B89249
accent
#AE42E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1F4286

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

Preview Lab → · Contrast checker → · Palette generator →

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