#1F4479#1F4479

#1F4479 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 38.9% C 0.100 H 257.7°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#1F4479
RGBrgb(31, 68, 121)
HSLhsl(215, 59%, 30%)
HSVhsv(215, 74%, 47%)
CMYKcmyk(74.4%, 43.8%, 0%, 52.5%)
CIE-LABlab(28.92, 6.39, -34.10)
CIE-LCHlch(28.92, 34.69, 280.61°)
OKLaboklab(38.9% -0.0212 -0.0974)
OKLCHoklch(38.9% 0.1 257.7)
XYZxyz(6.0821, 5.8054, 18.8855)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4479 #79541F
analogous
#1F7179 #1F4479 #271F79
triadic
#1F4479 #791F44 #44791F
tetradic
#1F4479 #791F71 #79541F #1F7927
square
#1F4479 #791F71 #79541F #1F7927
split-complementary
#1F4479 #79271F #71791F
monochromatic
#060E18 #132948 #1F4479 #2B5FAA #437DCF

Accessibility & contrast

On white

9.72
#1F4479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#1F4479 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4479
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4479#FFFFFF#000000##FFFFFF
##1F44791.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B497B
Deuteranopia (green-blind)
#1B4078
Tritanopia (blue-blind)
#005058
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f4479;
/* rgb */ color: rgb(31, 68, 121);
/* oklch */ color: oklch(38.9% 0.100 257.7);
Tailwind
colors: {
  custom: {
    50: '#6777a0',
    500: '#1f4479',
    950: '#000000',
  },
}
SCSS
$custom: #1f4479;
$custom-light: #6777a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4479",
  "rgb": {
    "r": 31,
    "g": 68,
    "b": 121
  },
  "hsl": {
    "h": 215.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.389,
    "c": 0.09969,
    "h": 257.7
  },
  "luminance": 0.05806
}

Semantic roles & 50–950 ramp

primary
#1F4479
secondary
#AC8347
accent
#A245E2
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07080F
muted
#7A7B7E

Preview Lab

Preview with #1F4479

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

Preview Lab → · Contrast checker → · Palette generator →

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