#1F4388#1F4388

#1F4388 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 39.8% C 0.123 H 261.8°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#1F4388
RGBrgb(31, 67, 136)
HSLhsl(219, 63%, 33%)
HSVhsv(219, 77%, 53%)
CMYKcmyk(77.2%, 50.7%, 0%, 46.7%)
CIE-LABlab(29.62, 13.09, -42.31)
CIE-LCHlch(29.62, 44.29, 287.19°)
OKLaboklab(39.77% -0.0175 -0.1216)
OKLCHoklch(39.77% 0.123 261.8)
XYZxyz(7.0146, 6.0824, 24.0921)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4388 #88641F
analogous
#1F7788 #1F4388 #301F88
triadic
#1F4388 #881F43 #43881F
tetradic
#1F4388 #881F77 #88641F #1F8830
square
#1F4388 #881F77 #88641F #1F8830
split-complementary
#1F4388 #88301F #77881F
monochromatic
#081224 #142A56 #1F4388 #2A5CBA #4B7BD6

Accessibility & contrast

On white

9.47
#1F4388 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#1F4388 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4388
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4388#FFFFFF#000000##FFFFFF
##1F43881.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4B8B
Deuteranopia (green-blind)
#004187
Tritanopia (blue-blind)
#00535F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f4388;
/* rgb */ color: rgb(31, 67, 136);
/* oklch */ color: oklch(39.8% 0.123 261.8);
Tailwind
colors: {
  custom: {
    50: '#6b76ab',
    500: '#1f4388',
    950: '#000000',
  },
}
SCSS
$custom: #1f4388;
$custom-light: #6b76ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4388",
  "rgb": {
    "r": 31,
    "g": 67,
    "b": 136
  },
  "hsl": {
    "h": 219.429,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39765,
    "c": 0.12285,
    "h": 261.8
  },
  "luminance": 0.06083
}

Semantic roles & 50–950 ramp

primary
#1F4388
secondary
#B9934A
accent
#AE42E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1F4388

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

Preview Lab → · Contrast checker → · Palette generator →

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