#1F3874#1F3874

#1F3874 is a dark, moderate blue. Relative luminance 0.044; OKLCH L 35.7% C 0.108 H 264.5°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#1F3874
RGBrgb(31, 56, 116)
HSLhsl(222, 58%, 29%)
HSVhsv(222, 73%, 45%)
CMYKcmyk(73.3%, 51.7%, 0%, 54.5%)
CIE-LABlab(24.89, 12.71, -37.39)
CIE-LCHlch(24.89, 39.50, 288.78°)
OKLaboklab(35.69% -0.0103 -0.1073)
OKLCHoklch(35.69% 0.108 264.5)
XYZxyz(5.1305, 4.3801, 17.0947)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3874 #745B1F
analogous
#1F6374 #1F3874 #311F74
triadic
#1F3874 #741F38 #38741F
tetradic
#1F3874 #741F63 #745B1F #1F7431
square
#1F3874 #741F63 #745B1F #1F7431
split-complementary
#1F3874 #74311F #63741F
monochromatic
#060C18 #122144 #1F3874 #2C4FA4 #416ACC

Accessibility & contrast

On white

11.19
#1F3874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#1F3874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3874
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3874#FFFFFF#000000##FFFFFF
##1F38741.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163F76
Deuteranopia (green-blind)
#003773
Tritanopia (blue-blind)
#004650
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f3874;
/* rgb */ color: rgb(31, 56, 116);
/* oklch */ color: oklch(35.7% 0.108 264.5);
Tailwind
colors: {
  custom: {
    50: '#666e9c',
    500: '#1f3874',
    950: '#000000',
  },
}
SCSS
$custom: #1f3874;
$custom-light: #666e9c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3874",
  "rgb": {
    "r": 31,
    "g": 56,
    "b": 116
  },
  "hsl": {
    "h": 222.353,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35694,
    "c": 0.10782,
    "h": 264.5
  },
  "luminance": 0.04381
}

Semantic roles & 50–950 ramp

primary
#1F3874
secondary
#A88B47
accent
#B447E1
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070E
muted
#7A7A7E

Preview Lab

Preview with #1F3874

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

Preview Lab → · Contrast checker → · Palette generator →

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