#1F3A85#1F3A85

#1F3A85 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.5% C 0.130 H 265.5°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#1F3A85
RGBrgb(31, 58, 133)
HSLhsl(224, 62%, 32%)
HSVhsv(224, 77%, 52%)
CMYKcmyk(76.7%, 56.4%, 0%, 47.8%)
CIE-LABlab(26.76, 18.13, -45.07)
CIE-LCHlch(26.76, 48.58, 291.92°)
OKLaboklab(37.52% -0.0102 -0.1299)
OKLCHoklch(37.52% 0.13 265.5)
XYZxyz(6.3103, 5.0102, 22.8202)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3A85 #856A1F
analogous
#1F6D85 #1F3A85 #371F85
triadic
#1F3A85 #851F3A #3A851F
tetradic
#1F3A85 #851F6D #856A1F #1F8537
square
#1F3A85 #851F6D #856A1F #1F8537
split-complementary
#1F3A85 #85371F #6D851F
monochromatic
#080F22 #132453 #1F3A85 #2B50B7 #4A6ED5

Accessibility & contrast

On white

10.49
#1F3A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#1F3A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3A85
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3A85#FFFFFF#000000##FFFFFF
##1F3A851.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004488
Deuteranopia (green-blind)
#003B84
Tritanopia (blue-blind)
#004C59
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f3a85;
/* rgb */ color: rgb(31, 58, 133);
/* oklch */ color: oklch(37.5% 0.130 265.5);
Tailwind
colors: {
  custom: {
    50: '#6a6fa9',
    500: '#1f3a85',
    950: '#000000',
  },
}
SCSS
$custom: #1f3a85;
$custom-light: #6a6fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3a85",
  "rgb": {
    "r": 31,
    "g": 58,
    "b": 133
  },
  "hsl": {
    "h": 224.118,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37524,
    "c": 0.13028,
    "h": 265.5
  },
  "luminance": 0.05011
}

Semantic roles & 50–950 ramp

primary
#1F3A85
secondary
#B79A49
accent
#BA43E5
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #1F3A85

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

Preview Lab → · Contrast checker → · Palette generator →

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