#1F3885#1F3885

#1F3885 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.1% C 0.133 H 266.3°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#1F3885
RGBrgb(31, 56, 133)
HSLhsl(225, 62%, 32%)
HSVhsv(225, 77%, 52%)
CMYKcmyk(76.7%, 57.9%, 0%, 47.8%)
CIE-LABlab(26.19, 19.53, -46.00)
CIE-LCHlch(26.19, 49.97, 293.01°)
OKLaboklab(37.09% -0.0086 -0.1326)
OKLCHoklch(37.09% 0.133 266.3)
XYZxyz(6.2114, 4.8124, 22.7873)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3885 #856C1F
analogous
#1F6B85 #1F3885 #391F85
triadic
#1F3885 #851F38 #38851F
tetradic
#1F3885 #851F6B #856C1F #1F8539
square
#1F3885 #851F6B #856C1F #1F8539
split-complementary
#1F3885 #85391F #6B851F
monochromatic
#080E22 #132353 #1F3885 #2B4DB7 #4A6CD5

Accessibility & contrast

On white

10.70
#1F3885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#1F3885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3885
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3885#FFFFFF#000000##FFFFFF
##1F38851.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004388
Deuteranopia (green-blind)
#003983
Tritanopia (blue-blind)
#004B58
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f3885;
/* rgb */ color: rgb(31, 56, 133);
/* oklch */ color: oklch(37.1% 0.133 266.3);
Tailwind
colors: {
  custom: {
    50: '#6b6ea9',
    500: '#1f3885',
    950: '#000000',
  },
}
SCSS
$custom: #1f3885;
$custom-light: #6b6ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3885",
  "rgb": {
    "r": 31,
    "g": 56,
    "b": 133
  },
  "hsl": {
    "h": 225.294,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37094,
    "c": 0.13291,
    "h": 266.3
  },
  "luminance": 0.04813
}

Semantic roles & 50–950 ramp

primary
#1F3885
secondary
#B79C49
accent
#BD43E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #1F3885

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

Preview Lab → · Contrast checker → · Palette generator →

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