#1F3D85#1F3D85

#1F3D85 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.2% C 0.126 H 264.2°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#1F3D85
RGBrgb(31, 61, 133)
HSLhsl(222, 62%, 32%)
HSVhsv(222, 77%, 52%)
CMYKcmyk(76.7%, 54.1%, 0%, 47.8%)
CIE-LABlab(27.63, 16.04, -43.66)
CIE-LCHlch(27.63, 46.52, 290.18°)
OKLaboklab(38.18% -0.0127 -0.1257)
OKLCHoklch(38.18% 0.126 264.2)
XYZxyz(6.4660, 5.3215, 22.8721)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3D85 #85671F
analogous
#1F7085 #1F3D85 #341F85
triadic
#1F3D85 #851F3D #3D851F
tetradic
#1F3D85 #851F70 #85671F #1F8534
square
#1F3D85 #851F70 #85671F #1F8534
split-complementary
#1F3D85 #85341F #70851F
monochromatic
#080F22 #132653 #1F3D85 #2B54B7 #4A73D5

Accessibility & contrast

On white

10.17
#1F3D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#1F3D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3D85
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3D85#FFFFFF#000000##FFFFFF
##1F3D851.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4688
Deuteranopia (green-blind)
#003D84
Tritanopia (blue-blind)
#004E5B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f3d85;
/* rgb */ color: rgb(31, 61, 133);
/* oklch */ color: oklch(38.2% 0.126 264.2);
Tailwind
colors: {
  custom: {
    50: '#6a72a9',
    500: '#1f3d85',
    950: '#000000',
  },
}
SCSS
$custom: #1f3d85;
$custom-light: #6a72a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3d85",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 133
  },
  "hsl": {
    "h": 222.353,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38181,
    "c": 0.12632,
    "h": 264.2
  },
  "luminance": 0.05322
}

Semantic roles & 50–950 ramp

primary
#1F3D85
secondary
#B79749
accent
#B543E5
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #1F3D85

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

Preview Lab → · Contrast checker → · Palette generator →

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