#1F396B#1F396B

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

Color values

HEX#1F396B
RGBrgb(31, 57, 107)
HSLhsl(219, 55%, 27%)
HSVhsv(219, 71%, 42%)
CMYKcmyk(71%, 46.7%, 0%, 58%)
CIE-LABlab(24.57, 8.40, -32.15)
CIE-LCHlch(24.57, 33.23, 284.64°)
OKLaboklab(35.25% -0.0128 -0.0919)
OKLCHoklch(35.25% 0.093 262.1)
XYZxyz(4.6811, 4.2786, 14.4862)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F396B #6B511F
analogous
#1F5F6B #1F396B #2B1F6B
triadic
#1F396B #6B1F39 #396B1F
tetradic
#1F396B #6B1F5F #6B511F #1F6B2B
square
#1F396B #6B1F5F #6B511F #1F6B2B
split-complementary
#1F396B #6B2B1F #5F6B1F
monochromatic
#070D18 #11203C #1F396B #2D529A #3D6CC7

Accessibility & contrast

On white

11.32
#1F396B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#1F396B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F396B
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F396B#FFFFFF#000000##FFFFFF
##1F396B1.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213E6D
Deuteranopia (green-blind)
#13376A
Tritanopia (blue-blind)
#00454C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f396b;
/* rgb */ color: rgb(31, 57, 107);
/* oklch */ color: oklch(35.3% 0.093 262.1);
Tailwind
colors: {
  custom: {
    50: '#646e96',
    500: '#1f396b',
    950: '#000000',
  },
}
SCSS
$custom: #1f396b;
$custom-light: #646e96;
$custom-dark: #000000;
JSON
{
  "hex": "#1f396b",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 107
  },
  "hsl": {
    "h": 219.474,
    "s": 55.072,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3525,
    "c": 0.09277,
    "h": 262.1
  },
  "luminance": 0.04279
}

Semantic roles & 50–950 ramp

primary
#1F396B
secondary
#9F8147
accent
#AB49DE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070D
muted
#7A7A7E

Preview Lab

Preview with #1F396B

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

Preview Lab → · Contrast checker → · Palette generator →

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