#1F386F#1F386F

#1F386F is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.3% C 0.100 H 263.7°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#1F386F
RGBrgb(31, 56, 111)
HSLhsl(221, 56%, 28%)
HSVhsv(221, 72%, 44%)
CMYKcmyk(72.1%, 49.5%, 0%, 56.5%)
CIE-LABlab(24.53, 10.70, -34.77)
CIE-LCHlch(24.53, 36.38, 287.11°)
OKLaboklab(35.31% -0.011 -0.0996)
OKLCHoklch(35.31% 0.1 263.7)
XYZxyz(4.8475, 4.2669, 15.6040)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F386F #6F561F
analogous
#1F606F #1F386F #2E1F6F
triadic
#1F386F #6F1F38 #386F1F
tetradic
#1F386F #6F1F60 #6F561F #1F6F2E
square
#1F386F #6F1F60 #6F561F #1F6F2E
split-complementary
#1F386F #6F2E1F #606F1F
monochromatic
#070C18 #12203F #1F386F #2C509F #3F6AC9

Accessibility & contrast

On white

11.33
#1F386F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#1F386F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F386F
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F386F#FFFFFF#000000##FFFFFF
##1F386F1.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3E71
Deuteranopia (green-blind)
#09376E
Tritanopia (blue-blind)
#00454E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f386f;
/* rgb */ color: rgb(31, 56, 111);
/* oklch */ color: oklch(35.3% 0.100 263.7);
Tailwind
colors: {
  custom: {
    50: '#656e99',
    500: '#1f386f',
    950: '#000000',
  },
}
SCSS
$custom: #1f386f;
$custom-light: #656e99;
$custom-dark: #000000;
JSON
{
  "hex": "#1f386f",
  "rgb": {
    "r": 31,
    "g": 56,
    "b": 111
  },
  "hsl": {
    "h": 221.25,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35309,
    "c": 0.10023,
    "h": 263.7
  },
  "luminance": 0.04267
}

Semantic roles & 50–950 ramp

primary
#1F386F
secondary
#A38647
accent
#B048E0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070E
muted
#7A7A7E

Preview Lab

Preview with #1F386F

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

Preview Lab → · Contrast checker → · Palette generator →

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