#1F3E79#1F3E79

#1F3E79 is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.5% C 0.107 H 261.8°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#1F3E79
RGBrgb(31, 62, 121)
HSLhsl(219, 59%, 30%)
HSVhsv(219, 74%, 47%)
CMYKcmyk(74.4%, 48.8%, 0%, 52.5%)
CIE-LABlab(27.06, 10.52, -37.06)
CIE-LCHlch(27.06, 38.53, 285.85°)
OKLaboklab(37.47% -0.0153 -0.1062)
OKLCHoklch(37.47% 0.107 261.8)
XYZxyz(5.7377, 5.1164, 18.7706)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3E79 #795A1F
analogous
#1F6B79 #1F3E79 #2D1F79
triadic
#1F3E79 #791F3E #3E791F
tetradic
#1F3E79 #791F6B #795A1F #1F792D
square
#1F3E79 #791F6B #795A1F #1F792D
split-complementary
#1F3E79 #792D1F #6B791F
monochromatic
#060C18 #132548 #1F3E79 #2B57AA #4374CF

Accessibility & contrast

On white

10.38
#1F3E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#1F3E79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3E79
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3E79#FFFFFF#000000##FFFFFF
##1F3E791.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F447B
Deuteranopia (green-blind)
#0A3C78
Tritanopia (blue-blind)
#004C55
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f3e79;
/* rgb */ color: rgb(31, 62, 121);
/* oklch */ color: oklch(37.5% 0.107 261.8);
Tailwind
colors: {
  custom: {
    50: '#6772a0',
    500: '#1f3e79',
    950: '#000000',
  },
}
SCSS
$custom: #1f3e79;
$custom-light: #6772a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3e79",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 121
  },
  "hsl": {
    "h": 219.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37471,
    "c": 0.10733,
    "h": 261.8
  },
  "luminance": 0.05117
}

Semantic roles & 50–950 ramp

primary
#1F3E79
secondary
#AC8A47
accent
#AC45E2
background
#F6F6F9
surface
#EBECF2
border
#C6C7CC
text
#07080F
muted
#7A7B7E

Preview Lab

Preview with #1F3E79

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

Preview Lab → · Contrast checker → · Palette generator →

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