#1F2486#1F2486

#1F2486 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.4% C 0.159 H 271.7°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#1F2486
RGBrgb(31, 36, 134)
HSLhsl(237, 62%, 32%)
HSVhsv(237, 77%, 53%)
CMYKcmyk(76.9%, 73.1%, 0%, 47.5%)
CIE-LABlab(21.11, 33.42, -54.94)
CIE-LCHlch(21.11, 64.31, 301.31°)
OKLaboklab(33.38% 0.0048 -0.159)
OKLCHoklch(33.38% 0.159 271.7)
XYZxyz(5.4976, 3.2737, 22.8918)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2486 #86811F
analogous
#1F5886 #1F2486 #4D1F86
triadic
#1F2486 #861F24 #24861F
tetradic
#1F2486 #861F58 #86811F #1F864D
square
#1F2486 #861F58 #86811F #1F864D
split-complementary
#1F2486 #864D1F #58861F
monochromatic
#080923 #141754 #1F2486 #2A31B8 #4A51D5

Accessibility & contrast

On white

12.69
#1F2486 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1F2486 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2486
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2486#FFFFFF#000000##FFFFFF
##1F24861.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.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: #1f2486;
/* rgb */ color: rgb(31, 36, 134);
/* oklch */ color: oklch(33.4% 0.159 271.7);
Tailwind
colors: {
  custom: {
    50: '#6d5faa',
    500: '#1f2486',
    950: '#000000',
  },
}
SCSS
$custom: #1f2486;
$custom-light: #6d5faa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2486",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 134
  },
  "hsl": {
    "h": 237.087,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33381,
    "c": 0.15908,
    "h": 271.7
  },
  "luminance": 0.03274
}

Semantic roles & 50–950 ramp

primary
#1F2486
secondary
#B8B249
accent
#DE42E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F2486

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

Preview Lab → · Contrast checker → · Palette generator →

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