#1F3376#1F3376

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

Color values

HEX#1F3376
RGBrgb(31, 51, 118)
HSLhsl(226, 58%, 29%)
HSVhsv(226, 74%, 46%)
CMYKcmyk(73.7%, 56.8%, 0%, 53.7%)
CIE-LABlab(23.56, 17.05, -40.82)
CIE-LCHlch(23.56, 44.23, 292.67°)
OKLaboklab(34.73% -0.0054 -0.1175)
OKLCHoklch(34.73% 0.118 267.4)
XYZxyz(5.0178, 3.9665, 17.6372)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3376 #76621F
analogous
#1F5F76 #1F3376 #371F76
triadic
#1F3376 #761F33 #33761F
tetradic
#1F3376 #761F5F #76621F #1F7637
square
#1F3376 #761F5F #76621F #1F7637
split-complementary
#1F3376 #76371F #5F761F
monochromatic
#060A18 #121E46 #1F3376 #2C48A6 #4262CD

Accessibility & contrast

On white

11.71
#1F3376 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1F3376 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3376
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3376#FFFFFF#000000##FFFFFF
##1F33761.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C78
Deuteranopia (green-blind)
#003475
Tritanopia (blue-blind)
#00434F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f3376;
/* rgb */ color: rgb(31, 51, 118);
/* oklch */ color: oklch(34.7% 0.118 267.4);
Tailwind
colors: {
  custom: {
    50: '#676a9e',
    500: '#1f3376',
    950: '#000000',
  },
}
SCSS
$custom: #1f3376;
$custom-light: #676a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3376",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 118
  },
  "hsl": {
    "h": 226.207,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34734,
    "c": 0.11761,
    "h": 267.4
  },
  "luminance": 0.03967
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F3376

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

Preview Lab → · Contrast checker → · Palette generator →

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