#1F4079#1F4079

#1F4079 is a dark, moderate blue. Relative luminance 0.053; OKLCH L 37.9% C 0.105 H 260.5°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#1F4079
RGBrgb(31, 64, 121)
HSLhsl(218, 59%, 30%)
HSVhsv(218, 74%, 47%)
CMYKcmyk(74.4%, 47.1%, 0%, 52.5%)
CIE-LABlab(27.68, 9.13, -36.08)
CIE-LCHlch(27.68, 37.22, 284.21°)
OKLaboklab(37.94% -0.0172 -0.1033)
OKLCHoklch(37.94% 0.105 260.5)
XYZxyz(5.8484, 5.3380, 18.8076)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4079 #79581F
analogous
#1F6D79 #1F4079 #2B1F79
triadic
#1F4079 #791F40 #40791F
tetradic
#1F4079 #791F6D #79581F #1F792B
square
#1F4079 #791F6D #79581F #1F792B
split-complementary
#1F4079 #792B1F #6D791F
monochromatic
#060D18 #132648 #1F4079 #2B5AAA #4377CF

Accessibility & contrast

On white

10.16
#1F4079 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#1F4079 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4079
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4079#FFFFFF#000000##FFFFFF
##1F40791.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23467B
Deuteranopia (green-blind)
#113D78
Tritanopia (blue-blind)
#004D56
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f4079;
/* rgb */ color: rgb(31, 64, 121);
/* oklch */ color: oklch(37.9% 0.105 260.5);
Tailwind
colors: {
  custom: {
    50: '#6774a0',
    500: '#1f4079',
    950: '#000000',
  },
}
SCSS
$custom: #1f4079;
$custom-light: #6774a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4079",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 121
  },
  "hsl": {
    "h": 218,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37942,
    "c": 0.10474,
    "h": 260.5
  },
  "luminance": 0.05339
}

Semantic roles & 50–950 ramp

primary
#1F4079
secondary
#AC8747
accent
#A945E2
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07080F
muted
#7A7B7E

Preview Lab

Preview with #1F4079

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

Preview Lab → · Contrast checker → · Palette generator →

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