#1F4488#1F4488

#1F4488 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.0% C 0.122 H 261.3°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#1F4488
RGBrgb(31, 68, 136)
HSLhsl(219, 63%, 33%)
HSVhsv(219, 77%, 53%)
CMYKcmyk(77.2%, 50%, 0%, 46.7%)
CIE-LABlab(29.92, 12.41, -41.83)
CIE-LCHlch(29.92, 43.63, 286.52°)
OKLaboklab(39.99% -0.0184 -0.1202)
OKLCHoklch(39.99% 0.122 261.3)
XYZxyz(7.0745, 6.2023, 24.1121)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4488 #88631F
analogous
#1F7888 #1F4488 #2E1F88
triadic
#1F4488 #881F44 #44881F
tetradic
#1F4488 #881F78 #88631F #1F882E
square
#1F4488 #881F78 #88631F #1F882E
split-complementary
#1F4488 #882E1F #78881F
monochromatic
#081224 #142B56 #1F4488 #2A5DBA #4B7CD6

Accessibility & contrast

On white

9.37
#1F4488 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#1F4488 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4488
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4488#FFFFFF#000000##FFFFFF
##1F44881.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4C8B
Deuteranopia (green-blind)
#004287
Tritanopia (blue-blind)
#00545F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f4488;
/* rgb */ color: rgb(31, 68, 136);
/* oklch */ color: oklch(40.0% 0.122 261.3);
Tailwind
colors: {
  custom: {
    50: '#6b77ab',
    500: '#1f4488',
    950: '#000000',
  },
}
SCSS
$custom: #1f4488;
$custom-light: #6b77ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4488",
  "rgb": {
    "r": 31,
    "g": 68,
    "b": 136
  },
  "hsl": {
    "h": 218.857,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39993,
    "c": 0.12157,
    "h": 261.3
  },
  "luminance": 0.06203
}

Semantic roles & 50–950 ramp

primary
#1F4488
secondary
#B9924A
accent
#AC42E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1F4488

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

Preview Lab → · Contrast checker → · Palette generator →

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