#1F3D7E#1F3D7E

#1F3D7E is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.6% C 0.116 H 263.3°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#1F3D7E
RGBrgb(31, 61, 126)
HSLhsl(221, 61%, 31%)
HSVhsv(221, 75%, 49%)
CMYKcmyk(75.4%, 51.6%, 0%, 50.6%)
CIE-LABlab(27.11, 13.23, -40.12)
CIE-LCHlch(27.11, 42.25, 288.25°)
OKLaboklab(37.62% -0.0136 -0.1153)
OKLCHoklch(37.62% 0.116 263.3)
XYZxyz(5.9984, 5.1345, 20.4095)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3D7E #7E601F
analogous
#1F6C7E #1F3D7E #301F7E
triadic
#1F3D7E #7E1F3D #3D7E1F
tetradic
#1F3D7E #7E1F6C #7E601F #1F7E30
square
#1F3D7E #7E1F6C #7E601F #1F7E30
split-complementary
#1F3D7E #7E301F #6C7E1F
monochromatic
#070D1C #13254D #1F3D7E #2B55AF #4672D1

Accessibility & contrast

On white

10.36
#1F3D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#1F3D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3D7E
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3D7E#FFFFFF#000000##FFFFFF
##1F3D7E1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174580
Deuteranopia (green-blind)
#003C7D
Tritanopia (blue-blind)
#004C57
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f3d7e;
/* rgb */ color: rgb(31, 61, 126);
/* oklch */ color: oklch(37.6% 0.116 263.3);
Tailwind
colors: {
  custom: {
    50: '#6972a4',
    500: '#1f3d7e',
    950: '#000000',
  },
}
SCSS
$custom: #1f3d7e;
$custom-light: #6972a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3d7e",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 126
  },
  "hsl": {
    "h": 221.053,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37623,
    "c": 0.11607,
    "h": 263.3
  },
  "luminance": 0.05135
}

Semantic roles & 50–950 ramp

primary
#1F3D7E
secondary
#B19048
accent
#B144E4
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1F3D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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