#1F3D7B#1F3D7B

#1F3D7B is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.4% C 0.112 H 262.8°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#1F3D7B
RGBrgb(31, 61, 123)
HSLhsl(220, 60%, 30%)
HSVhsv(220, 75%, 48%)
CMYKcmyk(74.8%, 50.4%, 0%, 51.8%)
CIE-LABlab(26.90, 12.02, -38.59)
CIE-LCHlch(26.90, 40.42, 287.31°)
OKLaboklab(37.39% -0.014 -0.1107)
OKLCHoklch(37.39% 0.112 262.8)
XYZxyz(5.8077, 5.0582, 19.4053)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3D7B #7B5D1F
analogous
#1F6B7B #1F3D7B #2F1F7B
triadic
#1F3D7B #7B1F3D #3D7B1F
tetradic
#1F3D7B #7B1F6B #7B5D1F #1F7B2F
square
#1F3D7B #7B1F6B #7B5D1F #1F7B2F
split-complementary
#1F3D7B #7B2F1F #6B7B1F
monochromatic
#060D19 #13254A #1F3D7B #2B55AC #4472D0

Accessibility & contrast

On white

10.44
#1F3D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F3D7B
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3D7B#FFFFFF#000000##FFFFFF
##1F3D7B1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A447D
Deuteranopia (green-blind)
#003C7A
Tritanopia (blue-blind)
#004C56
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f3d7b;
/* rgb */ color: rgb(31, 61, 123);
/* oklch */ color: oklch(37.4% 0.112 262.8);
Tailwind
colors: {
  custom: {
    50: '#6872a2',
    500: '#1f3d7b',
    950: '#000000',
  },
}
SCSS
$custom: #1f3d7b;
$custom-light: #6872a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3d7b",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 123
  },
  "hsl": {
    "h": 220.435,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3739,
    "c": 0.11162,
    "h": 262.8
  },
  "luminance": 0.05059
}

Semantic roles & 50–950 ramp

primary
#1F3D7B
secondary
#AE8D48
accent
#AF45E3
background
#F6F6FA
surface
#EBECF3
border
#C6C7CD
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1F3D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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