#1F3789#1F3789

#1F3789 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.2% C 0.140 H 266.9°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#1F3789
RGBrgb(31, 55, 137)
HSLhsl(226, 63%, 33%)
HSVhsv(226, 77%, 54%)
CMYKcmyk(77.4%, 59.9%, 0%, 46.3%)
CIE-LABlab(26.24, 21.81, -48.41)
CIE-LCHlch(26.24, 53.09, 294.26°)
OKLaboklab(37.23% -0.0077 -0.1397)
OKLCHoklch(37.23% 0.14 266.9)
XYZxyz(6.4450, 4.8291, 24.2545)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3789 #89711F
analogous
#1F6C89 #1F3789 #3C1F89
triadic
#1F3789 #891F37 #37891F
tetradic
#1F3789 #891F6C #89711F #1F893C
square
#1F3789 #891F6C #89711F #1F893C
split-complementary
#1F3789 #893C1F #6C891F
monochromatic
#080F25 #142357 #1F3789 #2A4BBB #4C6BD6

Accessibility & contrast

On white

10.68
#1F3789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#1F3789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3789
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3789#FFFFFF#000000##FFFFFF
##1F37891.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438C
Deuteranopia (green-blind)
#003987
Tritanopia (blue-blind)
#004C5A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f3789;
/* rgb */ color: rgb(31, 55, 137);
/* oklch */ color: oklch(37.2% 0.140 266.9);
Tailwind
colors: {
  custom: {
    50: '#6c6dac',
    500: '#1f3789',
    950: '#000000',
  },
}
SCSS
$custom: #1f3789;
$custom-light: #6c6dac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3789",
  "rgb": {
    "r": 31,
    "g": 55,
    "b": 137
  },
  "hsl": {
    "h": 226.415,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37234,
    "c": 0.13995,
    "h": 266.9
  },
  "luminance": 0.0483
}

Semantic roles & 50–950 ramp

primary
#1F3789
secondary
#B9A04B
accent
#C142E6
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1F3789

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

Preview Lab → · Contrast checker → · Palette generator →

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