#1F3F7D#1F3F7D

#1F3F7D is a dark, moderate blue. Relative luminance 0.053; OKLCH L 38.0% C 0.112 H 262.0°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#1F3F7D
RGBrgb(31, 63, 125)
HSLhsl(220, 60%, 31%)
HSVhsv(220, 75%, 49%)
CMYKcmyk(75.2%, 49.6%, 0%, 51%)
CIE-LABlab(27.64, 11.44, -38.64)
CIE-LCHlch(27.64, 40.30, 286.48°)
OKLaboklab(38.01% -0.0156 -0.1109)
OKLCHoklch(38.01% 0.112 262)
XYZxyz(6.0429, 5.3263, 20.1077)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3F7D #7D5D1F
analogous
#1F6E7D #1F3F7D #2E1F7D
triadic
#1F3F7D #7D1F3F #3F7D1F
tetradic
#1F3F7D #7D1F6E #7D5D1F #1F7D2E
square
#1F3F7D #7D1F6E #7D5D1F #1F7D2E
split-complementary
#1F3F7D #7D2E1F #6E7D1F
monochromatic
#070E1B #13264C #1F3F7D #2B58AE #4575D1

Accessibility & contrast

On white

10.17
#1F3F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#1F3F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3F7D
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3F7D#FFFFFF#000000##FFFFFF
##1F3F7D1.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D467F
Deuteranopia (green-blind)
#033D7C
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f3f7d;
/* rgb */ color: rgb(31, 63, 125);
/* oklch */ color: oklch(38.0% 0.112 262.0);
Tailwind
colors: {
  custom: {
    50: '#6873a3',
    500: '#1f3f7d',
    950: '#000000',
  },
}
SCSS
$custom: #1f3f7d;
$custom-light: #6873a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3f7d",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 125
  },
  "hsl": {
    "h": 219.574,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38005,
    "c": 0.11197,
    "h": 262
  },
  "luminance": 0.05327
}

Semantic roles & 50–950 ramp

primary
#1F3F7D
secondary
#B08D48
accent
#AD44E3
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1F3F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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