#1F3785#1F3785

#1F3785 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.9% C 0.134 H 266.7°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#1F3785
RGBrgb(31, 55, 133)
HSLhsl(226, 62%, 32%)
HSVhsv(226, 77%, 52%)
CMYKcmyk(76.7%, 58.6%, 0%, 47.8%)
CIE-LABlab(25.91, 20.23, -46.45)
CIE-LCHlch(25.91, 50.67, 293.53°)
OKLaboklab(36.88% -0.0078 -0.134)
OKLCHoklch(36.88% 0.134 266.7)
XYZxyz(6.1634, 4.7165, 22.7713)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3785 #856D1F
analogous
#1F6A85 #1F3785 #3A1F85
triadic
#1F3785 #851F37 #37851F
tetradic
#1F3785 #851F6A #856D1F #1F853A
square
#1F3785 #851F6A #856D1F #1F853A
split-complementary
#1F3785 #853A1F #6A851F
monochromatic
#080E22 #132253 #1F3785 #2B4CB7 #4A6AD5

Accessibility & contrast

On white

10.81
#1F3785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#1F3785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3785
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3785#FFFFFF#000000##FFFFFF
##1F37851.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004288
Deuteranopia (green-blind)
#003983
Tritanopia (blue-blind)
#004A58
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f3785;
/* rgb */ color: rgb(31, 55, 133);
/* oklch */ color: oklch(36.9% 0.134 266.7);
Tailwind
colors: {
  custom: {
    50: '#6b6da9',
    500: '#1f3785',
    950: '#000000',
  },
}
SCSS
$custom: #1f3785;
$custom-light: #6b6da9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3785",
  "rgb": {
    "r": 31,
    "g": 55,
    "b": 133
  },
  "hsl": {
    "h": 225.882,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36882,
    "c": 0.13423,
    "h": 266.7
  },
  "luminance": 0.04717
}

Semantic roles & 50–950 ramp

primary
#1F3785
secondary
#B79D49
accent
#BF43E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1F3785

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

Preview Lab → · Contrast checker → · Palette generator →

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