#1F3387#1F3387

#1F3387 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.2% C 0.142 H 268.1°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#1F3387
RGBrgb(31, 51, 135)
HSLhsl(228, 63%, 33%)
HSVhsv(228, 77%, 53%)
CMYKcmyk(77%, 62.2%, 0%, 47.1%)
CIE-LABlab(24.98, 23.79, -49.23)
CIE-LCHlch(24.98, 54.68, 295.80°)
OKLaboklab(36.24% -0.0048 -0.1422)
OKLCHoklch(36.24% 0.142 268.1)
XYZxyz(6.1206, 4.4076, 23.4451)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3387 #87731F
analogous
#1F6787 #1F3387 #3F1F87
triadic
#1F3387 #871F33 #33871F
tetradic
#1F3387 #871F67 #87731F #1F873F
square
#1F3387 #871F67 #87731F #1F873F
split-complementary
#1F3387 #873F1F #67871F
monochromatic
#080D23 #142055 #1F3387 #2A46B9 #4B65D6

Accessibility & contrast

On white

11.16
#1F3387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#1F3387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3387
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3387#FFFFFF#000000##FFFFFF
##1F33871.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408A
Deuteranopia (green-blind)
#003785
Tritanopia (blue-blind)
#004858
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f3387;
/* rgb */ color: rgb(31, 51, 135);
/* oklch */ color: oklch(36.2% 0.142 268.1);
Tailwind
colors: {
  custom: {
    50: '#6c6aab',
    500: '#1f3387',
    950: '#000000',
  },
}
SCSS
$custom: #1f3387;
$custom-light: #6c6aab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3387",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 135
  },
  "hsl": {
    "h": 228.462,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36237,
    "c": 0.14228,
    "h": 268.1
  },
  "luminance": 0.04408
}

Semantic roles & 50–950 ramp

primary
#1F3387
secondary
#B8A34A
accent
#C642E6
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1F3387

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

Preview Lab → · Contrast checker → · Palette generator →

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