#1F386B#1F386B

#1F386B is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.0% C 0.094 H 262.8°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#1F386B
RGBrgb(31, 56, 107)
HSLhsl(220, 55%, 27%)
HSVhsv(220, 71%, 42%)
CMYKcmyk(71%, 47.7%, 0%, 58%)
CIE-LABlab(24.26, 9.10, -32.65)
CIE-LCHlch(24.26, 33.89, 285.58°)
OKLaboklab(35.01% -0.0117 -0.0934)
OKLCHoklch(35.01% 0.094 262.8)
XYZxyz(4.6322, 4.1807, 14.4699)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F386B #6B521F
analogous
#1F5E6B #1F386B #2C1F6B
triadic
#1F386B #6B1F38 #386B1F
tetradic
#1F386B #6B1F5E #6B521F #1F6B2C
square
#1F386B #6B1F5E #6B521F #1F6B2C
split-complementary
#1F386B #6B2C1F #5E6B1F
monochromatic
#070C18 #111F3C #1F386B #2D519A #3D6BC7

Accessibility & contrast

On white

11.44
#1F386B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F386B
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F386B#FFFFFF#000000##FFFFFF
##1F386B1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3D6D
Deuteranopia (green-blind)
#11366A
Tritanopia (blue-blind)
#00444C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f386b;
/* rgb */ color: rgb(31, 56, 107);
/* oklch */ color: oklch(35.0% 0.094 262.8);
Tailwind
colors: {
  custom: {
    50: '#646e96',
    500: '#1f386b',
    950: '#000000',
  },
}
SCSS
$custom: #1f386b;
$custom-light: #646e96;
$custom-dark: #000000;
JSON
{
  "hex": "#1f386b",
  "rgb": {
    "r": 31,
    "g": 56,
    "b": 107
  },
  "hsl": {
    "h": 220.263,
    "s": 55.072,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3501,
    "c": 0.0941,
    "h": 262.8
  },
  "luminance": 0.04181
}

Semantic roles & 50–950 ramp

primary
#1F386B
secondary
#9F8247
accent
#AD49DE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070D
muted
#7A7A7E

Preview Lab

Preview with #1F386B

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

Preview Lab → · Contrast checker → · Palette generator →

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