#1F3D7D#1F3D7D

#1F3D7D is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.5% C 0.115 H 263.1°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#1F3D7D
RGBrgb(31, 61, 125)
HSLhsl(221, 60%, 31%)
HSVhsv(221, 75%, 49%)
CMYKcmyk(75.2%, 51.2%, 0%, 51%)
CIE-LABlab(27.04, 12.83, -39.61)
CIE-LCHlch(27.04, 41.64, 287.94°)
OKLaboklab(37.55% -0.0137 -0.1138)
OKLCHoklch(37.55% 0.115 263.1)
XYZxyz(5.9342, 5.1088, 20.0714)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3D7D #7D5F1F
analogous
#1F6C7D #1F3D7D #301F7D
triadic
#1F3D7D #7D1F3D #3D7D1F
tetradic
#1F3D7D #7D1F6C #7D5F1F #1F7D30
square
#1F3D7D #7D1F6C #7D5F1F #1F7D30
split-complementary
#1F3D7D #7D301F #6C7D1F
monochromatic
#070D1B #13254C #1F3D7D #2B55AE #4572D1

Accessibility & contrast

On white

10.39
#1F3D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#1F3D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3D7D
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3D7D#FFFFFF#000000##FFFFFF
##1F3D7D1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18447F
Deuteranopia (green-blind)
#003C7C
Tritanopia (blue-blind)
#004C57
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f3d7d;
/* rgb */ color: rgb(31, 61, 125);
/* oklch */ color: oklch(37.5% 0.115 263.1);
Tailwind
colors: {
  custom: {
    50: '#6872a3',
    500: '#1f3d7d',
    950: '#000000',
  },
}
SCSS
$custom: #1f3d7d;
$custom-light: #6872a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3d7d",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 125
  },
  "hsl": {
    "h": 220.851,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37545,
    "c": 0.11459,
    "h": 263.1
  },
  "luminance": 0.05109
}

Semantic roles & 50–950 ramp

primary
#1F3D7D
secondary
#B08F48
accent
#B144E3
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1F3D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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