#1F4289#1F4289

#1F4289 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.6% C 0.126 H 262.5°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#1F4289
RGBrgb(31, 66, 137)
HSLhsl(220, 63%, 33%)
HSVhsv(220, 77%, 54%)
CMYKcmyk(77.4%, 51.8%, 0%, 46.3%)
CIE-LABlab(29.39, 14.18, -43.29)
CIE-LCHlch(29.39, 45.56, 288.14°)
OKLaboklab(39.62% -0.0165 -0.1245)
OKLCHoklch(39.62% 0.126 262.5)
XYZxyz(7.0270, 5.9931, 24.4485)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4289 #89661F
analogous
#1F7789 #1F4289 #311F89
triadic
#1F4289 #891F42 #42891F
tetradic
#1F4289 #891F77 #89661F #1F8931
square
#1F4289 #891F77 #89661F #1F8931
split-complementary
#1F4289 #89311F #77891F
monochromatic
#081225 #142A57 #1F4289 #2A5ABB #4C7AD6

Accessibility & contrast

On white

9.55
#1F4289 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#1F4289 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4289
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4289#FFFFFF#000000##FFFFFF
##1F42891.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164A8C
Deuteranopia (green-blind)
#004188
Tritanopia (blue-blind)
#00535F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f4289;
/* rgb */ color: rgb(31, 66, 137);
/* oklch */ color: oklch(39.6% 0.126 262.5);
Tailwind
colors: {
  custom: {
    50: '#6b75ac',
    500: '#1f4289',
    950: '#000000',
  },
}
SCSS
$custom: #1f4289;
$custom-light: #6b75ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4289",
  "rgb": {
    "r": 31,
    "g": 66,
    "b": 137
  },
  "hsl": {
    "h": 220.189,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39617,
    "c": 0.12559,
    "h": 262.5
  },
  "luminance": 0.05994
}

Semantic roles & 50–950 ramp

primary
#1F4289
secondary
#B9954B
accent
#B042E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1F4289

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

Preview Lab → · Contrast checker → · Palette generator →

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