#1F396F#1F396F

#1F396F is a dark, moderate blue. Relative luminance 0.044; OKLCH L 35.5% C 0.099 H 263.0°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#1F396F
RGBrgb(31, 57, 111)
HSLhsl(221, 56%, 28%)
HSVhsv(221, 72%, 44%)
CMYKcmyk(72.1%, 48.6%, 0%, 56.5%)
CIE-LABlab(24.84, 10.00, -34.28)
CIE-LCHlch(24.84, 35.71, 286.26°)
OKLaboklab(35.55% -0.012 -0.0981)
OKLCHoklch(35.55% 0.099 263)
XYZxyz(4.8964, 4.3648, 15.6203)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F396F #6F551F
analogous
#1F616F #1F396F #2D1F6F
triadic
#1F396F #6F1F39 #396F1F
tetradic
#1F396F #6F1F61 #6F551F #1F6F2D
square
#1F396F #6F1F61 #6F551F #1F6F2D
split-complementary
#1F396F #6F2D1F #616F1F
monochromatic
#070C18 #12203F #1F396F #2C529F #3F6CC9

Accessibility & contrast

On white

11.21
#1F396F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#1F396F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F396F
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F396F#FFFFFF#000000##FFFFFF
##1F396F1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3F71
Deuteranopia (green-blind)
#0D386E
Tritanopia (blue-blind)
#00464E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f396f;
/* rgb */ color: rgb(31, 57, 111);
/* oklch */ color: oklch(35.5% 0.099 263.0);
Tailwind
colors: {
  custom: {
    50: '#656e99',
    500: '#1f396f',
    950: '#000000',
  },
}
SCSS
$custom: #1f396f;
$custom-light: #656e99;
$custom-dark: #000000;
JSON
{
  "hex": "#1f396f",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 111
  },
  "hsl": {
    "h": 220.5,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35545,
    "c": 0.09889,
    "h": 263
  },
  "luminance": 0.04365
}

Semantic roles & 50–950 ramp

primary
#1F396F
secondary
#A38547
accent
#AE48E0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070E
muted
#7A7A7E

Preview Lab

Preview with #1F396F

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

Preview Lab → · Contrast checker → · Palette generator →

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