#1F2687#1F2687

#1F2687 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.158 H 271.3°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#1F2687
RGBrgb(31, 38, 135)
HSLhsl(236, 63%, 33%)
HSVhsv(236, 77%, 53%)
CMYKcmyk(77%, 71.9%, 0%, 47.1%)
CIE-LABlab(21.68, 32.51, -54.64)
CIE-LCHlch(21.68, 63.58, 300.75°)
OKLaboklab(33.82% 0.0035 -0.1581)
OKLCHoklch(33.82% 0.158 271.3)
XYZxyz(5.6299, 3.4262, 23.2816)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2687 #87801F
analogous
#1F5A87 #1F2687 #4C1F87
triadic
#1F2687 #871F26 #26871F
tetradic
#1F2687 #871F5A #87801F #1F874C
square
#1F2687 #871F5A #87801F #1F874C
split-complementary
#1F2687 #874C1F #5A871F
monochromatic
#080A23 #141855 #1F2687 #2A34B9 #4B54D6

Accessibility & contrast

On white

12.46
#1F2687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1F2687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2687
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2687#FFFFFF#000000##FFFFFF
##1F26871.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#002F85
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2687;
/* rgb */ color: rgb(31, 38, 135);
/* oklch */ color: oklch(33.8% 0.158 271.3);
Tailwind
colors: {
  custom: {
    50: '#6d61ab',
    500: '#1f2687',
    950: '#000000',
  },
}
SCSS
$custom: #1f2687;
$custom-light: #6d61ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2687",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 135
  },
  "hsl": {
    "h": 235.962,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3382,
    "c": 0.15816,
    "h": 271.3
  },
  "luminance": 0.03427
}

Semantic roles & 50–950 ramp

primary
#1F2687
secondary
#B8B14A
accent
#DB42E6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2687

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

Preview Lab → · Contrast checker → · Palette generator →

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