#1F3973#1F3973

#1F3973 is a dark, moderate blue. Relative luminance 0.045; OKLCH L 35.8% C 0.105 H 263.8°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#1F3973
RGBrgb(31, 57, 115)
HSLhsl(221, 58%, 29%)
HSVhsv(221, 73%, 45%)
CMYKcmyk(73%, 50.4%, 0%, 54.9%)
CIE-LABlab(25.12, 11.61, -36.38)
CIE-LCHlch(25.12, 38.19, 287.69°)
OKLaboklab(35.85% -0.0114 -0.1043)
OKLCHoklch(35.85% 0.105 263.8)
XYZxyz(5.1216, 4.4548, 16.8063)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3973 #73591F
analogous
#1F6373 #1F3973 #2F1F73
triadic
#1F3973 #731F39 #39731F
tetradic
#1F3973 #731F63 #73591F #1F732F
square
#1F3973 #731F63 #73591F #1F732F
split-complementary
#1F3973 #732F1F #63731F
monochromatic
#060C18 #122143 #1F3973 #2C51A3 #416CCC

Accessibility & contrast

On white

11.11
#1F3973 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#1F3973 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3973
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3973#FFFFFF#000000##FFFFFF
##1F39731.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4075
Deuteranopia (green-blind)
#043872
Tritanopia (blue-blind)
#004750
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f3973;
/* rgb */ color: rgb(31, 57, 115);
/* oklch */ color: oklch(35.8% 0.105 263.8);
Tailwind
colors: {
  custom: {
    50: '#666e9c',
    500: '#1f3973',
    950: '#000000',
  },
}
SCSS
$custom: #1f3973;
$custom-light: #666e9c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3973",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 115
  },
  "hsl": {
    "h": 221.429,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35848,
    "c": 0.10496,
    "h": 263.8
  },
  "luminance": 0.04455
}

Semantic roles & 50–950 ramp

primary
#1F3973
secondary
#A78947
accent
#B147E1
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070E
muted
#7A7A7E

Preview Lab

Preview with #1F3973

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

Preview Lab → · Contrast checker → · Palette generator →

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