#1F397D#1F397D

#1F397D is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.6% C 0.120 H 265.2°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#1F397D
RGBrgb(31, 57, 125)
HSLhsl(223, 60%, 31%)
HSVhsv(223, 75%, 49%)
CMYKcmyk(75.2%, 54.4%, 0%, 51%)
CIE-LABlab(25.86, 15.63, -41.53)
CIE-LCHlch(25.86, 44.37, 290.62°)
OKLaboklab(36.64% -0.0101 -0.1195)
OKLCHoklch(36.64% 0.12 265.2)
XYZxyz(5.7286, 4.6976, 20.0029)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F397D #7D631F
analogous
#1F687D #1F397D #341F7D
triadic
#1F397D #7D1F39 #397D1F
tetradic
#1F397D #7D1F68 #7D631F #1F7D34
square
#1F397D #7D1F68 #7D631F #1F7D34
split-complementary
#1F397D #7D341F #687D1F
monochromatic
#070C1B #13234C #1F397D #2B4FAE #456CD1

Accessibility & contrast

On white

10.83
#1F397D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#1F397D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F397D
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F397D#FFFFFF#000000##FFFFFF
##1F397D1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A427F
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#004955
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f397d;
/* rgb */ color: rgb(31, 57, 125);
/* oklch */ color: oklch(36.6% 0.120 265.2);
Tailwind
colors: {
  custom: {
    50: '#696ea3',
    500: '#1f397d',
    950: '#000000',
  },
}
SCSS
$custom: #1f397d;
$custom-light: #696ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f397d",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 125
  },
  "hsl": {
    "h": 223.404,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36641,
    "c": 0.11991,
    "h": 265.2
  },
  "luminance": 0.04698
}

Semantic roles & 50–950 ramp

primary
#1F397D
secondary
#B09348
accent
#B744E3
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1F397D

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

Preview Lab → · Contrast checker → · Palette generator →

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