#1F396D#1F396D

#1F396D is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.4% C 0.096 H 262.6°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#1F396D
RGBrgb(31, 57, 109)
HSLhsl(220, 56%, 27%)
HSVhsv(220, 72%, 43%)
CMYKcmyk(71.6%, 47.7%, 0%, 57.3%)
CIE-LABlab(24.71, 9.20, -33.22)
CIE-LCHlch(24.71, 34.47, 285.48°)
OKLaboklab(35.4% -0.0124 -0.095)
OKLCHoklch(35.4% 0.096 262.6)
XYZxyz(4.7875, 4.3212, 15.0468)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F396D #6D531F
analogous
#1F606D #1F396D #2C1F6D
triadic
#1F396D #6D1F39 #396D1F
tetradic
#1F396D #6D1F60 #6D531F #1F6D2C
square
#1F396D #6D1F60 #6D531F #1F6D2C
split-complementary
#1F396D #6D2C1F #606D1F
monochromatic
#070C18 #11203D #1F396D #2D529D #3E6CC8

Accessibility & contrast

On white

11.26
#1F396D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F396D
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F396D#FFFFFF#000000##FFFFFF
##1F396D1.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3E6F
Deuteranopia (green-blind)
#10376C
Tritanopia (blue-blind)
#00454D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f396d;
/* rgb */ color: rgb(31, 57, 109);
/* oklch */ color: oklch(35.4% 0.096 262.6);
Tailwind
colors: {
  custom: {
    50: '#656e97',
    500: '#1f396d',
    950: '#000000',
  },
}
SCSS
$custom: #1f396d;
$custom-light: #656e97;
$custom-dark: #000000;
JSON
{
  "hex": "#1f396d",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 109
  },
  "hsl": {
    "h": 220,
    "s": 55.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35396,
    "c": 0.09584,
    "h": 262.6
  },
  "luminance": 0.04322
}

Semantic roles & 50–950 ramp

primary
#1F396D
secondary
#A18347
accent
#AD49DF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070D
muted
#7A7A7E

Preview Lab

Preview with #1F396D

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

Preview Lab → · Contrast checker → · Palette generator →

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