#1F3D89#1F3D89

#1F3D89 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.5% C 0.132 H 264.6°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#1F3D89
RGBrgb(31, 61, 137)
HSLhsl(223, 63%, 33%)
HSVhsv(223, 77%, 54%)
CMYKcmyk(77.4%, 55.5%, 0%, 46.3%)
CIE-LABlab(27.94, 17.65, -45.65)
CIE-LCHlch(27.94, 48.94, 291.13°)
OKLaboklab(38.51% -0.0123 -0.1315)
OKLCHoklch(38.51% 0.132 264.6)
XYZxyz(6.7476, 5.4342, 24.3553)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3D89 #896B1F
analogous
#1F7289 #1F3D89 #361F89
triadic
#1F3D89 #891F3D #3D891F
tetradic
#1F3D89 #891F72 #896B1F #1F8936
square
#1F3D89 #891F72 #896B1F #1F8936
split-complementary
#1F3D89 #89361F #72891F
monochromatic
#081125 #142757 #1F3D89 #2A53BB #4C73D6

Accessibility & contrast

On white

10.06
#1F3D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#1F3D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3D89
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3D89#FFFFFF#000000##FFFFFF
##1F3D891.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478C
Deuteranopia (green-blind)
#003D87
Tritanopia (blue-blind)
#00505D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1f3d89;
/* rgb */ color: rgb(31, 61, 137);
/* oklch */ color: oklch(38.5% 0.132 264.6);
Tailwind
colors: {
  custom: {
    50: '#6b72ac',
    500: '#1f3d89',
    950: '#000000',
  },
}
SCSS
$custom: #1f3d89;
$custom-light: #6b72ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3d89",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 137
  },
  "hsl": {
    "h": 223.019,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38509,
    "c": 0.13212,
    "h": 264.6
  },
  "luminance": 0.05435
}

Semantic roles & 50–950 ramp

primary
#1F3D89
secondary
#B99A4B
accent
#B842E6
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1F3D89

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

Preview Lab → · Contrast checker → · Palette generator →

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