#1F4085#1F4085

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

Color values

HEX#1F4085
RGBrgb(31, 64, 133)
HSLhsl(221, 62%, 32%)
HSVhsv(221, 77%, 52%)
CMYKcmyk(76.7%, 51.9%, 0%, 47.8%)
CIE-LABlab(28.51, 13.96, -42.24)
CIE-LCHlch(28.51, 44.48, 288.29°)
OKLaboklab(38.85% -0.0153 -0.1214)
OKLCHoklch(38.85% 0.122 262.8)
XYZxyz(6.6306, 5.6508, 22.9270)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4085 #85641F
analogous
#1F7385 #1F4085 #311F85
triadic
#1F4085 #851F40 #40851F
tetradic
#1F4085 #851F73 #85641F #1F8531
square
#1F4085 #851F73 #85641F #1F8531
split-complementary
#1F4085 #85311F #73851F
monochromatic
#081022 #132853 #1F4085 #2B58B7 #4A77D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F4085#FFFFFF#000000##FFFFFF
##1F40851.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)
#164887
Deuteranopia (green-blind)
#003F84
Tritanopia (blue-blind)
#00515C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f4085;
/* rgb */ color: rgb(31, 64, 133);
/* oklch */ color: oklch(38.9% 0.122 262.8);
Tailwind
colors: {
  custom: {
    50: '#6a74a9',
    500: '#1f4085',
    950: '#000000',
  },
}
SCSS
$custom: #1f4085;
$custom-light: #6a74a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4085",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 133
  },
  "hsl": {
    "h": 220.588,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38852,
    "c": 0.12239,
    "h": 262.8
  },
  "luminance": 0.05652
}

Semantic roles & 50–950 ramp

primary
#1F4085
secondary
#B79349
accent
#B143E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1F4085

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

Preview Lab → · Contrast checker → · Palette generator →

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