#1F3887#1F3887

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

Color values

HEX#1F3887
RGBrgb(31, 56, 135)
HSLhsl(226, 63%, 33%)
HSVhsv(226, 77%, 53%)
CMYKcmyk(77%, 58.5%, 0%, 47.1%)
CIE-LABlab(26.36, 20.33, -46.98)
CIE-LCHlch(26.36, 51.19, 293.40°)
OKLaboklab(37.27% -0.0085 -0.1355)
OKLCHoklch(37.27% 0.136 266.4)
XYZxyz(6.3509, 4.8682, 23.5219)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3887 #876E1F
analogous
#1F6C87 #1F3887 #3A1F87
triadic
#1F3887 #871F38 #38871F
tetradic
#1F3887 #871F6C #876E1F #1F873A
square
#1F3887 #871F6C #876E1F #1F873A
split-complementary
#1F3887 #873A1F #6C871F
monochromatic
#080F23 #142355 #1F3887 #2A4DB9 #4B6CD6

Accessibility & contrast

On white

10.64
#1F3887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#1F3887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3887
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3887#FFFFFF#000000##FFFFFF
##1F38871.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#004C59
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f3887;
/* rgb */ color: rgb(31, 56, 135);
/* oklch */ color: oklch(37.3% 0.136 266.4);
Tailwind
colors: {
  custom: {
    50: '#6b6eab',
    500: '#1f3887',
    950: '#000000',
  },
}
SCSS
$custom: #1f3887;
$custom-light: #6b6eab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3887",
  "rgb": {
    "r": 31,
    "g": 56,
    "b": 135
  },
  "hsl": {
    "h": 225.577,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37268,
    "c": 0.13579,
    "h": 266.4
  },
  "luminance": 0.04869
}

Semantic roles & 50–950 ramp

primary
#1F3887
secondary
#B89E4A
accent
#BE42E6
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1F3887

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

Preview Lab → · Contrast checker → · Palette generator →

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