#1F3E72#1F3E72

#1F3E72 is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.0% C 0.097 H 260.1°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#1F3E72
RGBrgb(31, 62, 114)
HSLhsl(218, 57%, 28%)
HSVhsv(218, 73%, 45%)
CMYKcmyk(72.8%, 45.6%, 0%, 55.3%)
CIE-LABlab(26.59, 7.71, -33.39)
CIE-LCHlch(26.59, 34.27, 283.01°)
OKLaboklab(36.96% -0.0166 -0.0954)
OKLCHoklch(36.96% 0.097 260.1)
XYZxyz(5.3239, 4.9509, 16.5914)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3E72 #72531F
analogous
#1F6772 #1F3E72 #291F72
triadic
#1F3E72 #721F3E #3E721F
tetradic
#1F3E72 #721F67 #72531F #1F7229
square
#1F3E72 #721F67 #72531F #1F7229
split-complementary
#1F3E72 #72291F #67721F
monochromatic
#070D18 #122442 #1F3E72 #2C58A2 #4074CB

Accessibility & contrast

On white

10.55
#1F3E72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F3E72
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3E72#FFFFFF#000000##FFFFFF
##1F3E721.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254374
Deuteranopia (green-blind)
#163B71
Tritanopia (blue-blind)
#004A52
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f3e72;
/* rgb */ color: rgb(31, 62, 114);
/* oklch */ color: oklch(37.0% 0.097 260.1);
Tailwind
colors: {
  custom: {
    50: '#66729b',
    500: '#1f3e72',
    950: '#000000',
  },
}
SCSS
$custom: #1f3e72;
$custom-light: #66729b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3e72",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 114
  },
  "hsl": {
    "h": 217.59,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36958,
    "c": 0.09687,
    "h": 260.1
  },
  "luminance": 0.04951
}

Semantic roles & 50–950 ramp

primary
#1F3E72
secondary
#A68247
accent
#A747E0
background
#F6F6F9
surface
#EBECF2
border
#C6C7CC
text
#06080E
muted
#7A7B7E

Preview Lab

Preview with #1F3E72

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

Preview Lab → · Contrast checker → · Palette generator →

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