#1F4288#1F4288

#1F4288 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.5% C 0.124 H 262.3°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#1F4288
RGBrgb(31, 66, 136)
HSLhsl(220, 63%, 33%)
HSVhsv(220, 77%, 53%)
CMYKcmyk(77.2%, 51.5%, 0%, 46.7%)
CIE-LABlab(29.32, 13.78, -42.79)
CIE-LCHlch(29.32, 44.96, 287.85°)
OKLaboklab(39.54% -0.0166 -0.123)
OKLCHoklch(39.54% 0.124 262.3)
XYZxyz(6.9556, 5.9645, 24.0725)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4288 #88651F
analogous
#1F7688 #1F4288 #301F88
triadic
#1F4288 #881F42 #42881F
tetradic
#1F4288 #881F76 #88651F #1F8830
square
#1F4288 #881F76 #88651F #1F8830
split-complementary
#1F4288 #88301F #76881F
monochromatic
#081224 #142A56 #1F4288 #2A5ABA #4B7AD6

Accessibility & contrast

On white

9.58
#1F4288 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#1F4288 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4288
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4288#FFFFFF#000000##FFFFFF
##1F42881.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184A8B
Deuteranopia (green-blind)
#004187
Tritanopia (blue-blind)
#00535E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f4288;
/* rgb */ color: rgb(31, 66, 136);
/* oklch */ color: oklch(39.5% 0.124 262.3);
Tailwind
colors: {
  custom: {
    50: '#6b75ab',
    500: '#1f4288',
    950: '#000000',
  },
}
SCSS
$custom: #1f4288;
$custom-light: #6b75ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4288",
  "rgb": {
    "r": 31,
    "g": 66,
    "b": 136
  },
  "hsl": {
    "h": 220,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39539,
    "c": 0.12415,
    "h": 262.3
  },
  "luminance": 0.05965
}

Semantic roles & 50–950 ramp

primary
#1F4288
secondary
#B9944A
accent
#AF42E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1F4288

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

Preview Lab → · Contrast checker → · Palette generator →

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