#1F3D74#1F3D74

#1F3D74 is a dark, moderate blue. Relative luminance 0.049; OKLCH L 36.9% C 0.101 H 261.4°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#1F3D74
RGBrgb(31, 61, 116)
HSLhsl(219, 58%, 29%)
HSVhsv(219, 73%, 45%)
CMYKcmyk(73.3%, 47.4%, 0%, 54.5%)
CIE-LABlab(26.42, 9.21, -34.94)
CIE-LCHlch(26.42, 36.13, 284.76°)
OKLaboklab(36.86% -0.0152 -0.1)
OKLCHoklch(36.86% 0.101 261.4)
XYZxyz(5.3851, 4.8892, 17.1795)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3D74 #74561F
analogous
#1F6874 #1F3D74 #2C1F74
triadic
#1F3D74 #741F3D #3D741F
tetradic
#1F3D74 #741F68 #74561F #1F742C
square
#1F3D74 #741F68 #74561F #1F742C
split-complementary
#1F3D74 #742C1F #68741F
monochromatic
#060D18 #122444 #1F3D74 #2C56A4 #4172CC

Accessibility & contrast

On white

10.62
#1F3D74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F3D74
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3D74#FFFFFF#000000##FFFFFF
##1F3D741.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214376
Deuteranopia (green-blind)
#103B73
Tritanopia (blue-blind)
#004A52
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f3d74;
/* rgb */ color: rgb(31, 61, 116);
/* oklch */ color: oklch(36.9% 0.101 261.4);
Tailwind
colors: {
  custom: {
    50: '#66729c',
    500: '#1f3d74',
    950: '#000000',
  },
}
SCSS
$custom: #1f3d74;
$custom-light: #66729c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3d74",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 116
  },
  "hsl": {
    "h": 218.824,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36864,
    "c": 0.10117,
    "h": 261.4
  },
  "luminance": 0.0489
}

Semantic roles & 50–950 ramp

primary
#1F3D74
secondary
#A88647
accent
#AB47E1
background
#F6F6F9
surface
#EBECF2
border
#C6C7CC
text
#06070E
muted
#7A7A7E

Preview Lab

Preview with #1F3D74

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

Preview Lab → · Contrast checker → · Palette generator →

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