#1F3F7A#1F3F7A

#1F3F7A is a dark, moderate blue. Relative luminance 0.053; OKLCH L 37.8% C 0.108 H 261.4°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#1F3F7A
RGBrgb(31, 63, 122)
HSLhsl(219, 59%, 30%)
HSVhsv(219, 75%, 48%)
CMYKcmyk(74.6%, 48.4%, 0%, 52.2%)
CIE-LABlab(27.44, 10.23, -37.09)
CIE-LCHlch(27.44, 38.48, 285.42°)
OKLaboklab(37.78% -0.0161 -0.1063)
OKLCHoklch(37.78% 0.108 261.4)
XYZxyz(5.8542, 5.2508, 19.1136)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3F7A #7A5A1F
analogous
#1F6D7A #1F3F7A #2C1F7A
triadic
#1F3F7A #7A1F3F #3F7A1F
tetradic
#1F3F7A #7A1F6D #7A5A1F #1F7A2C
square
#1F3F7A #7A1F6D #7A5A1F #1F7A2C
split-complementary
#1F3F7A #7A2C1F #6D7A1F
monochromatic
#060D18 #132649 #1F3F7A #2B58AB #4475CF

Accessibility & contrast

On white

10.24
#1F3F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#1F3F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3F7A
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3F7A#FFFFFF#000000##FFFFFF
##1F3F7A1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20457C
Deuteranopia (green-blind)
#0B3D79
Tritanopia (blue-blind)
#004D56
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f3f7a;
/* rgb */ color: rgb(31, 63, 122);
/* oklch */ color: oklch(37.8% 0.108 261.4);
Tailwind
colors: {
  custom: {
    50: '#6873a1',
    500: '#1f3f7a',
    950: '#000000',
  },
}
SCSS
$custom: #1f3f7a;
$custom-light: #6873a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3f7a",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 122
  },
  "hsl": {
    "h": 218.901,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.3778,
    "c": 0.10752,
    "h": 261.4
  },
  "luminance": 0.05251
}

Semantic roles & 50–950 ramp

primary
#1F3F7A
secondary
#AD8A47
accent
#AB45E3
background
#F6F6F9
surface
#EBECF2
border
#C6C7CC
text
#07080F
muted
#7A7B7E

Preview Lab

Preview with #1F3F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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