#1F397A#1F397A

#1F397A is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.4% C 0.115 H 264.8°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#1F397A
RGBrgb(31, 57, 122)
HSLhsl(223, 59%, 30%)
HSVhsv(223, 75%, 48%)
CMYKcmyk(74.6%, 53.3%, 0%, 52.2%)
CIE-LABlab(25.63, 14.42, -40.00)
CIE-LCHlch(25.63, 42.52, 289.82°)
OKLaboklab(36.4% -0.0104 -0.115)
OKLCHoklch(36.4% 0.115 264.8)
XYZxyz(5.5398, 4.6221, 19.0088)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F397A #7A601F
analogous
#1F677A #1F397A #321F7A
triadic
#1F397A #7A1F39 #397A1F
tetradic
#1F397A #7A1F67 #7A601F #1F7A32
square
#1F397A #7A1F67 #7A601F #1F7A32
split-complementary
#1F397A #7A321F #677A1F
monochromatic
#060B18 #132249 #1F397A #2B50AB #446CCF

Accessibility & contrast

On white

10.91
#1F397A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#1F397A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F397A
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F397A#FFFFFF#000000##FFFFFF
##1F397A1.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10417C
Deuteranopia (green-blind)
#003979
Tritanopia (blue-blind)
#004953
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f397a;
/* rgb */ color: rgb(31, 57, 122);
/* oklch */ color: oklch(36.4% 0.115 264.8);
Tailwind
colors: {
  custom: {
    50: '#686ea1',
    500: '#1f397a',
    950: '#000000',
  },
}
SCSS
$custom: #1f397a;
$custom-light: #686ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f397a",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 122
  },
  "hsl": {
    "h": 222.857,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.36398,
    "c": 0.11546,
    "h": 264.8
  },
  "luminance": 0.04623
}

Semantic roles & 50–950 ramp

primary
#1F397A
secondary
#AD9047
accent
#B645E3
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1F397A

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

Preview Lab → · Contrast checker → · Palette generator →

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