#1F3779#1F3779

#1F3779 is a dark, moderate blue. Relative luminance 0.044; OKLCH L 35.9% C 0.117 H 265.7°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#1F3779
RGBrgb(31, 55, 121)
HSLhsl(224, 59%, 30%)
HSVhsv(224, 74%, 47%)
CMYKcmyk(74.4%, 54.5%, 0%, 52.5%)
CIE-LABlab(24.96, 15.43, -40.45)
CIE-LCHlch(24.96, 43.29, 290.88°)
OKLaboklab(35.87% -0.0087 -0.1163)
OKLCHoklch(35.87% 0.117 265.7)
XYZxyz(5.3812, 4.4036, 18.6518)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3779 #79611F
analogous
#1F6479 #1F3779 #341F79
triadic
#1F3779 #791F37 #37791F
tetradic
#1F3779 #791F64 #79611F #1F7934
square
#1F3779 #791F64 #79611F #1F7934
split-complementary
#1F3779 #79341F #64791F
monochromatic
#060B18 #132148 #1F3779 #2B4DAA #4369CF

Accessibility & contrast

On white

11.17
#1F3779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#1F3779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3779
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3779#FFFFFF#000000##FFFFFF
##1F37791.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A407B
Deuteranopia (green-blind)
#003778
Tritanopia (blue-blind)
#004752
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f3779;
/* rgb */ color: rgb(31, 55, 121);
/* oklch */ color: oklch(35.9% 0.117 265.7);
Tailwind
colors: {
  custom: {
    50: '#686da0',
    500: '#1f3779',
    950: '#000000',
  },
}
SCSS
$custom: #1f3779;
$custom-light: #686da0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3779",
  "rgb": {
    "r": 31,
    "g": 55,
    "b": 121
  },
  "hsl": {
    "h": 224,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35868,
    "c": 0.11667,
    "h": 265.7
  },
  "luminance": 0.04404
}

Semantic roles & 50–950 ramp

primary
#1F3779
secondary
#AC9147
accent
#B945E2
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07070F
muted
#7A7A7E

Preview Lab

Preview with #1F3779

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

Preview Lab → · Contrast checker → · Palette generator →

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