#1F3F85#1F3F85

#1F3F85 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.6% C 0.124 H 263.3°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#1F3F85
RGBrgb(31, 63, 133)
HSLhsl(221, 62%, 32%)
HSVhsv(221, 77%, 52%)
CMYKcmyk(76.7%, 52.6%, 0%, 47.8%)
CIE-LABlab(28.22, 14.65, -42.71)
CIE-LCHlch(28.22, 45.16, 288.93°)
OKLaboklab(38.63% -0.0144 -0.1229)
OKLCHoklch(38.63% 0.124 263.3)
XYZxyz(6.5747, 5.5391, 22.9084)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3F85 #85651F
analogous
#1F7285 #1F3F85 #321F85
triadic
#1F3F85 #851F3F #3F851F
tetradic
#1F3F85 #851F72 #85651F #1F8532
square
#1F3F85 #851F72 #85651F #1F8532
split-complementary
#1F3F85 #85321F #72851F
monochromatic
#081022 #132753 #1F3F85 #2B57B7 #4A75D5

Accessibility & contrast

On white

9.96
#1F3F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#1F3F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3F85
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3F85#FFFFFF#000000##FFFFFF
##1F3F851.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134888
Deuteranopia (green-blind)
#003E84
Tritanopia (blue-blind)
#00505B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f3f85;
/* rgb */ color: rgb(31, 63, 133);
/* oklch */ color: oklch(38.6% 0.124 263.3);
Tailwind
colors: {
  custom: {
    50: '#6a73a9',
    500: '#1f3f85',
    950: '#000000',
  },
}
SCSS
$custom: #1f3f85;
$custom-light: #6a73a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3f85",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 133
  },
  "hsl": {
    "h": 221.176,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38627,
    "c": 0.12371,
    "h": 263.3
  },
  "luminance": 0.0554
}

Semantic roles & 50–950 ramp

primary
#1F3F85
secondary
#B79549
accent
#B243E5
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1F3F85

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

Preview Lab → · Contrast checker → · Palette generator →

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