#1F3F89#1F3F89

#1F3F89 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 38.9% C 0.130 H 263.8°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#1F3F89
RGBrgb(31, 63, 137)
HSLhsl(222, 63%, 33%)
HSVhsv(222, 77%, 54%)
CMYKcmyk(77.4%, 54%, 0%, 46.3%)
CIE-LABlab(28.52, 16.26, -44.71)
CIE-LCHlch(28.52, 47.58, 289.98°)
OKLaboklab(38.95% -0.014 -0.1287)
OKLCHoklch(38.95% 0.13 263.8)
XYZxyz(6.8563, 5.6517, 24.3916)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3F89 #89691F
analogous
#1F7489 #1F3F89 #341F89
triadic
#1F3F89 #891F3F #3F891F
tetradic
#1F3F89 #891F74 #89691F #1F8934
square
#1F3F89 #891F74 #89691F #1F8934
split-complementary
#1F3F89 #89341F #74891F
monochromatic
#081125 #142857 #1F3F89 #2A56BB #4C76D6

Accessibility & contrast

On white

9.86
#1F3F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#1F3F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3F89
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3F89#FFFFFF#000000##FFFFFF
##1F3F891.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A488C
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#00515D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f3f89;
/* rgb */ color: rgb(31, 63, 137);
/* oklch */ color: oklch(38.9% 0.130 263.8);
Tailwind
colors: {
  custom: {
    50: '#6b73ac',
    500: '#1f3f89',
    950: '#000000',
  },
}
SCSS
$custom: #1f3f89;
$custom-light: #6b73ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3f89",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 137
  },
  "hsl": {
    "h": 221.887,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38948,
    "c": 0.1295,
    "h": 263.8
  },
  "luminance": 0.05652
}

Semantic roles & 50–950 ramp

primary
#1F3F89
secondary
#B9984B
accent
#B442E6
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1F3F89

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

Preview Lab → · Contrast checker → · Palette generator →

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