#1F3D7A#1F3D7A

#1F3D7A is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.3% C 0.110 H 262.6°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#1F3D7A
RGBrgb(31, 61, 122)
HSLhsl(220, 59%, 30%)
HSVhsv(220, 75%, 48%)
CMYKcmyk(74.6%, 50%, 0%, 52.2%)
CIE-LABlab(26.83, 11.62, -38.07)
CIE-LCHlch(26.83, 39.80, 286.97°)
OKLaboklab(37.31% -0.0142 -0.1092)
OKLCHoklch(37.31% 0.11 262.6)
XYZxyz(5.7454, 5.0333, 19.0773)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3D7A #7A5C1F
analogous
#1F6A7A #1F3D7A #2F1F7A
triadic
#1F3D7A #7A1F3D #3D7A1F
tetradic
#1F3D7A #7A1F6A #7A5C1F #1F7A2F
square
#1F3D7A #7A1F6A #7A5C1F #1F7A2F
split-complementary
#1F3D7A #7A2F1F #6A7A1F
monochromatic
#060C18 #132549 #1F3D7A #2B55AB #4472CF

Accessibility & contrast

On white

10.46
#1F3D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#1F3D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3D7A
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3D7A#FFFFFF#000000##FFFFFF
##1F3D7A1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C447C
Deuteranopia (green-blind)
#033B79
Tritanopia (blue-blind)
#004B55
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f3d7a;
/* rgb */ color: rgb(31, 61, 122);
/* oklch */ color: oklch(37.3% 0.110 262.6);
Tailwind
colors: {
  custom: {
    50: '#6872a1',
    500: '#1f3d7a',
    950: '#000000',
  },
}
SCSS
$custom: #1f3d7a;
$custom-light: #6872a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3d7a",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 122
  },
  "hsl": {
    "h": 220.22,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.37313,
    "c": 0.11015,
    "h": 262.6
  },
  "luminance": 0.05034
}

Semantic roles & 50–950 ramp

primary
#1F3D7A
secondary
#AD8C47
accent
#AF45E3
background
#F6F6F9
surface
#EBECF2
border
#C6C7CC
text
#07070F
muted
#7A7A7E

Preview Lab

Preview with #1F3D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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