#1F4489#1F4489

#1F4489 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.1% C 0.123 H 261.5°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#1F4489
RGBrgb(31, 68, 137)
HSLhsl(219, 63%, 33%)
HSVhsv(219, 77%, 54%)
CMYKcmyk(77.4%, 50.4%, 0%, 46.3%)
CIE-LABlab(29.99, 12.81, -42.34)
CIE-LCHlch(29.99, 44.23, 286.83°)
OKLaboklab(40.07% -0.0182 -0.1216)
OKLCHoklch(40.07% 0.123 261.5)
XYZxyz(7.1459, 6.2309, 24.4881)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4489 #89641F
analogous
#1F7989 #1F4489 #2F1F89
triadic
#1F4489 #891F44 #44891F
tetradic
#1F4489 #891F79 #89641F #1F892F
square
#1F4489 #891F79 #89641F #1F892F
split-complementary
#1F4489 #892F1F #79891F
monochromatic
#081225 #142B57 #1F4489 #2A5DBB #4C7CD6

Accessibility & contrast

On white

9.35
#1F4489 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#1F4489 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4489
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4489#FFFFFF#000000##FFFFFF
##1F44891.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4C8C
Deuteranopia (green-blind)
#004288
Tritanopia (blue-blind)
#005460
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f4489;
/* rgb */ color: rgb(31, 68, 137);
/* oklch */ color: oklch(40.1% 0.123 261.5);
Tailwind
colors: {
  custom: {
    50: '#6b77ac',
    500: '#1f4489',
    950: '#000000',
  },
}
SCSS
$custom: #1f4489;
$custom-light: #6b77ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4489",
  "rgb": {
    "r": 31,
    "g": 68,
    "b": 137
  },
  "hsl": {
    "h": 219.057,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.4007,
    "c": 0.12301,
    "h": 261.5
  },
  "luminance": 0.06232
}

Semantic roles & 50–950 ramp

primary
#1F4489
secondary
#B9934B
accent
#AD42E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1F4489

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

Preview Lab → · Contrast checker → · Palette generator →

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