#1F4178#1F4178

#1F4178 is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.1% C 0.102 H 259.6°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#1F4178
RGBrgb(31, 65, 120)
HSLhsl(217, 59%, 30%)
HSVhsv(217, 74%, 47%)
CMYKcmyk(74.2%, 45.8%, 0%, 52.9%)
CIE-LABlab(27.92, 8.04, -35.06)
CIE-LCHlch(27.92, 35.97, 282.92°)
OKLaboklab(38.11% -0.0184 -0.1003)
OKLCHoklch(38.11% 0.102 259.6)
XYZxyz(5.8443, 5.4273, 18.5052)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4178 #78561F
analogous
#1F6D78 #1F4178 #2A1F78
triadic
#1F4178 #781F41 #41781F
tetradic
#1F4178 #781F6D #78561F #1F782A
square
#1F4178 #781F6D #78561F #1F782A
split-complementary
#1F4178 #782A1F #6D781F
monochromatic
#060D18 #122747 #1F4178 #2C5BA9 #4378CE

Accessibility & contrast

On white

10.07
#1F4178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#1F4178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4178
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4178#FFFFFF#000000##FFFFFF
##1F41781.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26467A
Deuteranopia (green-blind)
#153E77
Tritanopia (blue-blind)
#004E56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1f4178;
/* rgb */ color: rgb(31, 65, 120);
/* oklch */ color: oklch(38.1% 0.102 259.6);
Tailwind
colors: {
  custom: {
    50: '#67759f',
    500: '#1f4178',
    950: '#000000',
  },
}
SCSS
$custom: #1f4178;
$custom-light: #67759f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4178",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 120
  },
  "hsl": {
    "h": 217.079,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.38108,
    "c": 0.10198,
    "h": 259.6
  },
  "luminance": 0.05428
}

Semantic roles & 50–950 ramp

primary
#1F4178
secondary
#AB8547
accent
#A646E2
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #1F4178

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

Preview Lab → · Contrast checker → · Palette generator →

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