#1F3773#1F3773

#1F3773 is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.4% C 0.108 H 265.0°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#1F3773
RGBrgb(31, 55, 115)
HSLhsl(223, 58%, 29%)
HSVhsv(223, 73%, 45%)
CMYKcmyk(73%, 52.2%, 0%, 54.9%)
CIE-LABlab(24.52, 13.02, -37.36)
CIE-LCHlch(24.52, 39.56, 289.21°)
OKLaboklab(35.39% -0.0094 -0.1072)
OKLCHoklch(35.39% 0.108 265)
XYZxyz(5.0247, 4.2610, 16.7740)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3773 #735B1F
analogous
#1F6173 #1F3773 #311F73
triadic
#1F3773 #731F37 #37731F
tetradic
#1F3773 #731F61 #735B1F #1F7331
square
#1F3773 #731F61 #735B1F #1F7331
split-complementary
#1F3773 #73311F #61731F
monochromatic
#060C18 #122043 #1F3773 #2C4EA3 #4168CC

Accessibility & contrast

On white

11.34
#1F3773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#1F3773 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3773
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3773#FFFFFF#000000##FFFFFF
##1F37731.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143E75
Deuteranopia (green-blind)
#003772
Tritanopia (blue-blind)
#00454F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f3773;
/* rgb */ color: rgb(31, 55, 115);
/* oklch */ color: oklch(35.4% 0.108 265.0);
Tailwind
colors: {
  custom: {
    50: '#666d9c',
    500: '#1f3773',
    950: '#000000',
  },
}
SCSS
$custom: #1f3773;
$custom-light: #666d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3773",
  "rgb": {
    "r": 31,
    "g": 55,
    "b": 115
  },
  "hsl": {
    "h": 222.857,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35386,
    "c": 0.10766,
    "h": 265
  },
  "luminance": 0.04261
}

Semantic roles & 50–950 ramp

primary
#1F3773
secondary
#A78B47
accent
#B547E1
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070E
muted
#7A7A7E

Preview Lab

Preview with #1F3773

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

Preview Lab → · Contrast checker → · Palette generator →

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