#1F3D76#1F3D76

#1F3D76 is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.0% C 0.104 H 261.8°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#1F3D76
RGBrgb(31, 61, 118)
HSLhsl(219, 58%, 29%)
HSVhsv(219, 74%, 46%)
CMYKcmyk(73.7%, 48.3%, 0%, 53.7%)
CIE-LABlab(26.55, 10.01, -35.99)
CIE-LCHlch(26.55, 37.36, 285.55°)
OKLaboklab(37.01% -0.0148 -0.1031)
OKLCHoklch(37.01% 0.104 261.8)
XYZxyz(5.5027, 4.9362, 17.7988)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3D76 #76581F
analogous
#1F6976 #1F3D76 #2D1F76
triadic
#1F3D76 #761F3D #3D761F
tetradic
#1F3D76 #761F69 #76581F #1F762D
square
#1F3D76 #761F69 #76581F #1F762D
split-complementary
#1F3D76 #762D1F #69761F
monochromatic
#060D18 #122446 #1F3D76 #2C56A6 #4272CD

Accessibility & contrast

On white

10.57
#1F3D76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#1F3D76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3D76
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3D76#FFFFFF#000000##FFFFFF
##1F3D761.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204378
Deuteranopia (green-blind)
#0D3B75
Tritanopia (blue-blind)
#004A53
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f3d76;
/* rgb */ color: rgb(31, 61, 118);
/* oklch */ color: oklch(37.0% 0.104 261.8);
Tailwind
colors: {
  custom: {
    50: '#67729e',
    500: '#1f3d76',
    950: '#000000',
  },
}
SCSS
$custom: #1f3d76;
$custom-light: #67729e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3d76",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 118
  },
  "hsl": {
    "h": 219.31,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37012,
    "c": 0.10417,
    "h": 261.8
  },
  "luminance": 0.04937
}

Semantic roles & 50–950 ramp

primary
#1F3D76
secondary
#AA8847
accent
#AC46E2
background
#F6F6F9
surface
#EBECF2
border
#C6C7CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #1F3D76

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

Preview Lab → · Contrast checker → · Palette generator →

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