#1F4186#1F4186

#1F4186 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.2% C 0.123 H 262.5°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#1F4186
RGBrgb(31, 65, 134)
HSLhsl(220, 62%, 32%)
HSVhsv(220, 77%, 53%)
CMYKcmyk(76.9%, 51.5%, 0%, 47.5%)
CIE-LABlab(28.88, 13.67, -42.26)
CIE-LCHlch(28.88, 44.42, 287.92°)
OKLaboklab(39.16% -0.016 -0.1215)
OKLCHoklch(39.16% 0.123 262.5)
XYZxyz(6.7569, 5.7924, 23.3116)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4186 #86641F
analogous
#1F7586 #1F4186 #301F86
triadic
#1F4186 #861F41 #41861F
tetradic
#1F4186 #861F75 #86641F #1F8630
square
#1F4186 #861F75 #86641F #1F8630
split-complementary
#1F4186 #86301F #75861F
monochromatic
#081123 #142954 #1F4186 #2A59B8 #4A78D5

Accessibility & contrast

On white

9.73
#1F4186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#1F4186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4186
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4186#FFFFFF#000000##FFFFFF
##1F41861.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184989
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#00515D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f4186;
/* rgb */ color: rgb(31, 65, 134);
/* oklch */ color: oklch(39.2% 0.123 262.5);
Tailwind
colors: {
  custom: {
    50: '#6a75aa',
    500: '#1f4186',
    950: '#000000',
  },
}
SCSS
$custom: #1f4186;
$custom-light: #6a75aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4186",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 134
  },
  "hsl": {
    "h": 220.194,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39156,
    "c": 0.12254,
    "h": 262.5
  },
  "luminance": 0.05793
}

Semantic roles & 50–950 ramp

primary
#1F4186
secondary
#B89349
accent
#B042E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1F4186

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

Preview Lab → · Contrast checker → · Palette generator →

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