#1F3377#1F3377

#1F3377 is a dark, moderate blue. Relative luminance 0.040; OKLCH L 34.8% C 0.119 H 267.4°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#1F3377
RGBrgb(31, 51, 119)
HSLhsl(226, 59%, 29%)
HSVhsv(226, 74%, 47%)
CMYKcmyk(73.9%, 57.1%, 0%, 53.3%)
CIE-LABlab(23.64, 17.45, -41.32)
CIE-LCHlch(23.64, 44.86, 292.89°)
OKLaboklab(34.82% -0.0053 -0.119)
OKLCHoklch(34.82% 0.119 267.4)
XYZxyz(5.0775, 3.9903, 17.9518)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3377 #77631F
analogous
#1F5F77 #1F3377 #371F77
triadic
#1F3377 #771F33 #33771F
tetradic
#1F3377 #771F5F #77631F #1F7737
square
#1F3377 #771F5F #77631F #1F7737
split-complementary
#1F3377 #77371F #5F771F
monochromatic
#060A18 #121E46 #1F3377 #2C48A8 #4362CE

Accessibility & contrast

On white

11.68
#1F3377 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#1F3377 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3377
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3377#FFFFFF#000000##FFFFFF
##1F33771.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C79
Deuteranopia (green-blind)
#003476
Tritanopia (blue-blind)
#00444F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f3377;
/* rgb */ color: rgb(31, 51, 119);
/* oklch */ color: oklch(34.8% 0.119 267.4);
Tailwind
colors: {
  custom: {
    50: '#676a9f',
    500: '#1f3377',
    950: '#000000',
  },
}
SCSS
$custom: #1f3377;
$custom-light: #676a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3377",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 119
  },
  "hsl": {
    "h": 226.364,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34819,
    "c": 0.1191,
    "h": 267.4
  },
  "luminance": 0.03991
}

Semantic roles & 50–950 ramp

primary
#1F3377
secondary
#AB9447
accent
#BE46E2
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #1F3377

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

Preview Lab → · Contrast checker → · Palette generator →

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