#1F396C#1F396C

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

Color values

HEX#1F396C
RGBrgb(31, 57, 108)
HSLhsl(220, 55%, 27%)
HSVhsv(220, 71%, 42%)
CMYKcmyk(71.3%, 47.2%, 0%, 57.6%)
CIE-LABlab(24.64, 8.80, -32.68)
CIE-LCHlch(24.64, 33.85, 285.06°)
OKLaboklab(35.32% -0.0126 -0.0935)
OKLCHoklch(35.32% 0.094 262.3)
XYZxyz(4.7340, 4.2998, 14.7649)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F396C #6C521F
analogous
#1F606C #1F396C #2B1F6C
triadic
#1F396C #6C1F39 #396C1F
tetradic
#1F396C #6C1F60 #6C521F #1F6C2B
square
#1F396C #6C1F60 #6C521F #1F6C2B
split-complementary
#1F396C #6C2B1F #606C1F
monochromatic
#070D18 #11203C #1F396C #2D529C #3E6CC8

Accessibility & contrast

On white

11.29
#1F396C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F396C
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F396C#FFFFFF#000000##FFFFFF
##1F396C1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203E6E
Deuteranopia (green-blind)
#12376B
Tritanopia (blue-blind)
#00454D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f396c;
/* rgb */ color: rgb(31, 57, 108);
/* oklch */ color: oklch(35.3% 0.094 262.3);
Tailwind
colors: {
  custom: {
    50: '#656e96',
    500: '#1f396c',
    950: '#000000',
  },
}
SCSS
$custom: #1f396c;
$custom-light: #656e96;
$custom-dark: #000000;
JSON
{
  "hex": "#1f396c",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 108
  },
  "hsl": {
    "h": 219.74,
    "s": 55.396,
    "l": 27.255
  },
  "oklch": {
    "l": 0.35323,
    "c": 0.09431,
    "h": 262.3
  },
  "luminance": 0.043
}

Semantic roles & 50–950 ramp

primary
#1F396C
secondary
#A08247
accent
#AC49DF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070D
muted
#7A7A7E

Preview Lab

Preview with #1F396C

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

Preview Lab → · Contrast checker → · Palette generator →

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