#1F3985#1F3985

#1F3985 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.3% C 0.132 H 265.9°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#1F3985
RGBrgb(31, 57, 133)
HSLhsl(225, 62%, 32%)
HSVhsv(225, 77%, 52%)
CMYKcmyk(76.7%, 57.1%, 0%, 47.8%)
CIE-LABlab(26.48, 18.83, -45.53)
CIE-LCHlch(26.48, 49.27, 292.47°)
OKLaboklab(37.31% -0.0094 -0.1313)
OKLCHoklch(37.31% 0.132 265.9)
XYZxyz(6.2604, 4.9103, 22.8036)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3985 #856B1F
analogous
#1F6C85 #1F3985 #381F85
triadic
#1F3985 #851F39 #39851F
tetradic
#1F3985 #851F6C #856B1F #1F8538
square
#1F3985 #851F6C #856B1F #1F8538
split-complementary
#1F3985 #85381F #6C851F
monochromatic
#080E22 #132453 #1F3985 #2B4EB7 #4A6DD5

Accessibility & contrast

On white

10.59
#1F3985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#1F3985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3985
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3985#FFFFFF#000000##FFFFFF
##1F39851.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f3985;
/* rgb */ color: rgb(31, 57, 133);
/* oklch */ color: oklch(37.3% 0.132 265.9);
Tailwind
colors: {
  custom: {
    50: '#6b6ea9',
    500: '#1f3985',
    950: '#000000',
  },
}
SCSS
$custom: #1f3985;
$custom-light: #6b6ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3985",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 133
  },
  "hsl": {
    "h": 224.706,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37308,
    "c": 0.1316,
    "h": 265.9
  },
  "luminance": 0.04911
}

Semantic roles & 50–950 ramp

primary
#1F3985
secondary
#B79B49
accent
#BC43E5
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #1F3985

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

Preview Lab → · Contrast checker → · Palette generator →

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