#1F4078#1F4078

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

Color values

HEX#1F4078
RGBrgb(31, 64, 120)
HSLhsl(218, 59%, 30%)
HSVhsv(218, 74%, 47%)
CMYKcmyk(74.2%, 46.7%, 0%, 52.9%)
CIE-LABlab(27.61, 8.73, -35.56)
CIE-LCHlch(27.61, 36.61, 283.80°)
OKLaboklab(37.87% -0.0174 -0.1018)
OKLCHoklch(37.87% 0.103 260.3)
XYZxyz(5.7874, 5.3135, 18.4863)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4078 #78571F
analogous
#1F6D78 #1F4078 #2B1F78
triadic
#1F4078 #781F40 #40781F
tetradic
#1F4078 #781F6D #78571F #1F782B
square
#1F4078 #781F6D #78571F #1F782B
split-complementary
#1F4078 #782B1F #6D781F
monochromatic
#060D18 #122647 #1F4078 #2C5AA9 #4377CE

Accessibility & contrast

On white

10.18
#1F4078 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#1F4078 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4078
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4078#FFFFFF#000000##FFFFFF
##1F40781.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24467A
Deuteranopia (green-blind)
#133D77
Tritanopia (blue-blind)
#004D56
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f4078;
/* rgb */ color: rgb(31, 64, 120);
/* oklch */ color: oklch(37.9% 0.103 260.3);
Tailwind
colors: {
  custom: {
    50: '#67749f',
    500: '#1f4078',
    950: '#000000',
  },
}
SCSS
$custom: #1f4078;
$custom-light: #67749f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4078",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 120
  },
  "hsl": {
    "h": 217.753,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37869,
    "c": 0.10326,
    "h": 260.3
  },
  "luminance": 0.05314
}

Semantic roles & 50–950 ramp

primary
#1F4078
secondary
#AB8647
accent
#A846E2
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #1F4078

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

Preview Lab → · Contrast checker → · Palette generator →

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