#1F3D72#1F3D72

#1F3D72 is a dark, moderate blue. Relative luminance 0.048; OKLCH L 36.7% C 0.098 H 260.9°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#1F3D72
RGBrgb(31, 61, 114)
HSLhsl(218, 57%, 28%)
HSVhsv(218, 73%, 45%)
CMYKcmyk(72.8%, 46.5%, 0%, 55.3%)
CIE-LABlab(26.28, 8.40, -33.88)
CIE-LCHlch(26.28, 34.91, 283.93°)
OKLaboklab(36.72% -0.0156 -0.0969)
OKLCHoklch(36.72% 0.098 260.9)
XYZxyz(5.2700, 4.8432, 16.5734)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3D72 #72541F
analogous
#1F6672 #1F3D72 #2A1F72
triadic
#1F3D72 #721F3D #3D721F
tetradic
#1F3D72 #721F66 #72541F #1F722A
square
#1F3D72 #721F66 #72541F #1F722A
split-complementary
#1F3D72 #722A1F #66721F
monochromatic
#070D18 #122342 #1F3D72 #2C57A2 #4072CB

Accessibility & contrast

On white

10.67
#1F3D72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#1F3D72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3D72
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3D72#FFFFFF#000000##FFFFFF
##1F3D721.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234274
Deuteranopia (green-blind)
#143B71
Tritanopia (blue-blind)
#004952
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f3d72;
/* rgb */ color: rgb(31, 61, 114);
/* oklch */ color: oklch(36.7% 0.098 260.9);
Tailwind
colors: {
  custom: {
    50: '#66729b',
    500: '#1f3d72',
    950: '#000000',
  },
}
SCSS
$custom: #1f3d72;
$custom-light: #66729b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3d72",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 114
  },
  "hsl": {
    "h": 218.313,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36718,
    "c": 0.09816,
    "h": 260.9
  },
  "luminance": 0.04844
}

Semantic roles & 50–950 ramp

primary
#1F3D72
secondary
#A68447
accent
#A947E0
background
#F6F6F9
surface
#EBECF2
border
#C6C7CC
text
#06070E
muted
#7A7A7E

Preview Lab

Preview with #1F3D72

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

Preview Lab → · Contrast checker → · Palette generator →

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