#1F3F78#1F3F78

#1F3F78 is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.6% C 0.105 H 261.0°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#1F3F78
RGBrgb(31, 63, 120)
HSLhsl(218, 59%, 30%)
HSVhsv(218, 74%, 47%)
CMYKcmyk(74.2%, 47.5%, 0%, 52.9%)
CIE-LABlab(27.30, 9.42, -36.05)
CIE-LCHlch(27.30, 37.26, 284.65°)
OKLaboklab(37.63% -0.0164 -0.1032)
OKLCHoklch(37.63% 0.105 261)
XYZxyz(5.7315, 5.2018, 18.4676)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3F78 #78581F
analogous
#1F6C78 #1F3F78 #2C1F78
triadic
#1F3F78 #781F3F #3F781F
tetradic
#1F3F78 #781F6C #78581F #1F782C
square
#1F3F78 #781F6C #78581F #1F782C
split-complementary
#1F3F78 #782C1F #6C781F
monochromatic
#060D18 #122547 #1F3F78 #2C59A9 #4375CE

Accessibility & contrast

On white

10.29
#1F3F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#1F3F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3F78
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3F78#FFFFFF#000000##FFFFFF
##1F3F781.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22457A
Deuteranopia (green-blind)
#103D77
Tritanopia (blue-blind)
#004C55
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f3f78;
/* rgb */ color: rgb(31, 63, 120);
/* oklch */ color: oklch(37.6% 0.105 261.0);
Tailwind
colors: {
  custom: {
    50: '#67739f',
    500: '#1f3f78',
    950: '#000000',
  },
}
SCSS
$custom: #1f3f78;
$custom-light: #67739f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3f78",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 120
  },
  "hsl": {
    "h": 218.427,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37632,
    "c": 0.10455,
    "h": 261
  },
  "luminance": 0.05202
}

Semantic roles & 50–950 ramp

primary
#1F3F78
secondary
#AB8747
accent
#AA46E2
background
#F6F6F9
surface
#EBECF2
border
#C6C7CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #1F3F78

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

Preview Lab → · Contrast checker → · Palette generator →

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