#1F3E85#1F3E85

#1F3E85 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.4% C 0.125 H 263.8°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#1F3E85
RGBrgb(31, 62, 133)
HSLhsl(222, 62%, 32%)
HSVhsv(222, 77%, 52%)
CMYKcmyk(76.7%, 53.4%, 0%, 47.8%)
CIE-LABlab(27.92, 15.35, -43.19)
CIE-LCHlch(27.92, 45.84, 289.56°)
OKLaboklab(38.4% -0.0136 -0.1243)
OKLCHoklch(38.4% 0.125 263.8)
XYZxyz(6.5198, 5.4293, 22.8901)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3E85 #85661F
analogous
#1F7185 #1F3E85 #331F85
triadic
#1F3E85 #851F3E #3E851F
tetradic
#1F3E85 #851F71 #85661F #1F8533
square
#1F3E85 #851F71 #85661F #1F8533
split-complementary
#1F3E85 #85331F #71851F
monochromatic
#081022 #132753 #1F3E85 #2B55B7 #4A74D5

Accessibility & contrast

On white

10.07
#1F3E85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F3E85
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3E85#FFFFFF#000000##FFFFFF
##1F3E851.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4788
Deuteranopia (green-blind)
#003D84
Tritanopia (blue-blind)
#004F5B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1f3e85;
/* rgb */ color: rgb(31, 62, 133);
/* oklch */ color: oklch(38.4% 0.125 263.8);
Tailwind
colors: {
  custom: {
    50: '#6a72a9',
    500: '#1f3e85',
    950: '#000000',
  },
}
SCSS
$custom: #1f3e85;
$custom-light: #6a72a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3e85",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 133
  },
  "hsl": {
    "h": 221.765,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38403,
    "c": 0.12501,
    "h": 263.8
  },
  "luminance": 0.0543
}

Semantic roles & 50–950 ramp

primary
#1F3E85
secondary
#B79649
accent
#B443E5
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1F3E85

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

Preview Lab → · Contrast checker → · Palette generator →

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