#1F386D#1F386D

#1F386D is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.2% C 0.097 H 263.3°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#1F386D
RGBrgb(31, 56, 109)
HSLhsl(221, 56%, 27%)
HSVhsv(221, 72%, 43%)
CMYKcmyk(71.6%, 48.6%, 0%, 57.3%)
CIE-LABlab(24.40, 9.90, -33.71)
CIE-LCHlch(24.40, 35.14, 286.37°)
OKLaboklab(35.16% -0.0114 -0.0965)
OKLCHoklch(35.16% 0.097 263.3)
XYZxyz(4.7386, 4.2233, 15.0305)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F386D #6D541F
analogous
#1F5F6D #1F386D #2D1F6D
triadic
#1F386D #6D1F38 #386D1F
tetradic
#1F386D #6D1F5F #6D541F #1F6D2D
square
#1F386D #6D1F5F #6D541F #1F6D2D
split-complementary
#1F386D #6D2D1F #5F6D1F
monochromatic
#070C18 #11203D #1F386D #2D509D #3E6AC8

Accessibility & contrast

On white

11.38
#1F386D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#1F386D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F386D
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F386D#FFFFFF#000000##FFFFFF
##1F386D1.0011.381.8411.38
#FFFFFF11.381.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3E6F
Deuteranopia (green-blind)
#0E376C
Tritanopia (blue-blind)
#00444D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f386d;
/* rgb */ color: rgb(31, 56, 109);
/* oklch */ color: oklch(35.2% 0.097 263.3);
Tailwind
colors: {
  custom: {
    50: '#656e97',
    500: '#1f386d',
    950: '#000000',
  },
}
SCSS
$custom: #1f386d;
$custom-light: #656e97;
$custom-dark: #000000;
JSON
{
  "hex": "#1f386d",
  "rgb": {
    "r": 31,
    "g": 56,
    "b": 109
  },
  "hsl": {
    "h": 220.769,
    "s": 55.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35158,
    "c": 0.09718,
    "h": 263.3
  },
  "luminance": 0.04224
}

Semantic roles & 50–950 ramp

primary
#1F386D
secondary
#A18447
accent
#AF49DF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070D
muted
#7A7A7E

Preview Lab

Preview with #1F386D

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

Preview Lab → · Contrast checker → · Palette generator →

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