#1F2586#1F2586

#1F2586 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.158 H 271.5°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#1F2586
RGBrgb(31, 37, 134)
HSLhsl(237, 62%, 32%)
HSVhsv(237, 77%, 53%)
CMYKcmyk(76.9%, 72.4%, 0%, 47.5%)
CIE-LABlab(21.34, 32.78, -54.56)
CIE-LCHlch(21.34, 63.66, 301.00°)
OKLaboklab(33.55% 0.0042 -0.1579)
OKLCHoklch(33.55% 0.158 271.5)
XYZxyz(5.5283, 3.3351, 22.9020)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2586 #86801F
analogous
#1F5886 #1F2586 #4D1F86
triadic
#1F2586 #861F25 #25861F
tetradic
#1F2586 #861F58 #86801F #1F864D
square
#1F2586 #861F58 #86801F #1F864D
split-complementary
#1F2586 #864D1F #58861F
monochromatic
#080A23 #141754 #1F2586 #2A33B8 #4A52D5

Accessibility & contrast

On white

12.60
#1F2586 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1F2586 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2586
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2586#FFFFFF#000000##FFFFFF
##1F25861.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#004052
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f2586;
/* rgb */ color: rgb(31, 37, 134);
/* oklch */ color: oklch(33.5% 0.158 271.5);
Tailwind
colors: {
  custom: {
    50: '#6d60aa',
    500: '#1f2586',
    950: '#000000',
  },
}
SCSS
$custom: #1f2586;
$custom-light: #6d60aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2586",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 134
  },
  "hsl": {
    "h": 236.505,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33546,
    "c": 0.15797,
    "h": 271.5
  },
  "luminance": 0.03336
}

Semantic roles & 50–950 ramp

primary
#1F2586
secondary
#B8B149
accent
#DC42E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2586

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

Preview Lab → · Contrast checker → · Palette generator →

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