#1F3D78#1F3D78

#1F3D78 is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.2% C 0.107 H 262.2°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#1F3D78
RGBrgb(31, 61, 120)
HSLhsl(220, 59%, 30%)
HSVhsv(220, 74%, 47%)
CMYKcmyk(74.2%, 49.2%, 0%, 52.9%)
CIE-LABlab(26.69, 10.81, -37.03)
CIE-LCHlch(26.69, 38.58, 286.28°)
OKLaboklab(37.16% -0.0145 -0.1062)
OKLCHoklch(37.16% 0.107 262.2)
XYZxyz(5.6228, 4.9843, 18.4314)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3D78 #785A1F
analogous
#1F6A78 #1F3D78 #2E1F78
triadic
#1F3D78 #781F3D #3D781F
tetradic
#1F3D78 #781F6A #785A1F #1F782E
square
#1F3D78 #781F6A #785A1F #1F782E
split-complementary
#1F3D78 #782E1F #6A781F
monochromatic
#060C18 #122447 #1F3D78 #2C56A9 #4372CE

Accessibility & contrast

On white

10.52
#1F3D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#1F3D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3D78
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3D78#FFFFFF#000000##FFFFFF
##1F3D781.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E437A
Deuteranopia (green-blind)
#083B77
Tritanopia (blue-blind)
#004B54
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f3d78;
/* rgb */ color: rgb(31, 61, 120);
/* oklch */ color: oklch(37.2% 0.107 262.2);
Tailwind
colors: {
  custom: {
    50: '#67729f',
    500: '#1f3d78',
    950: '#000000',
  },
}
SCSS
$custom: #1f3d78;
$custom-light: #67729f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3d78",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 120
  },
  "hsl": {
    "h": 219.775,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37162,
    "c": 0.10716,
    "h": 262.2
  },
  "luminance": 0.04985
}

Semantic roles & 50–950 ramp

primary
#1F3D78
secondary
#AB8A47
accent
#AD46E2
background
#F6F6F9
surface
#EBECF2
border
#C6C7CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #1F3D78

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

Preview Lab → · Contrast checker → · Palette generator →

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