#1F3787#1F3787

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

Color values

HEX#1F3787
RGBrgb(31, 55, 135)
HSLhsl(226, 63%, 33%)
HSVhsv(226, 77%, 53%)
CMYKcmyk(77%, 59.3%, 0%, 47.1%)
CIE-LABlab(26.08, 21.02, -47.43)
CIE-LCHlch(26.08, 51.88, 293.90°)
OKLaboklab(37.06% -0.0077 -0.1369)
OKLCHoklch(37.06% 0.137 266.8)
XYZxyz(6.3029, 4.7723, 23.5059)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3787 #876F1F
analogous
#1F6B87 #1F3787 #3B1F87
triadic
#1F3787 #871F37 #37871F
tetradic
#1F3787 #871F6B #876F1F #1F873B
square
#1F3787 #871F6B #876F1F #1F873B
split-complementary
#1F3787 #873B1F #6B871F
monochromatic
#080E23 #142355 #1F3787 #2A4BB9 #4B6BD6

Accessibility & contrast

On white

10.74
#1F3787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#1F3787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3787
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3787#FFFFFF#000000##FFFFFF
##1F37871.0010.741.9510.74
#FFFFFF10.741.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#004B59
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f3787;
/* rgb */ color: rgb(31, 55, 135);
/* oklch */ color: oklch(37.1% 0.137 266.8);
Tailwind
colors: {
  custom: {
    50: '#6b6dab',
    500: '#1f3787',
    950: '#000000',
  },
}
SCSS
$custom: #1f3787;
$custom-light: #6b6dab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3787",
  "rgb": {
    "r": 31,
    "g": 55,
    "b": 135
  },
  "hsl": {
    "h": 226.154,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37057,
    "c": 0.1371,
    "h": 266.8
  },
  "luminance": 0.04773
}

Semantic roles & 50–950 ramp

primary
#1F3787
secondary
#B89F4A
accent
#C042E6
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1F3787

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

Preview Lab → · Contrast checker → · Palette generator →

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