#1F397F#1F397F

#1F397F is a dark, vivid blue. Relative luminance 0.048; OKLCH L 36.8% C 0.123 H 265.4°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#1F397F
RGBrgb(31, 57, 127)
HSLhsl(224, 61%, 31%)
HSVhsv(224, 76%, 50%)
CMYKcmyk(75.6%, 55.1%, 0%, 50.2%)
CIE-LABlab(26.01, 16.43, -42.54)
CIE-LCHlch(26.01, 45.60, 291.12°)
OKLaboklab(36.81% -0.0099 -0.1225)
OKLCHoklch(36.81% 0.123 265.4)
XYZxyz(5.8576, 4.7492, 20.6825)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F397F #7F651F
analogous
#1F697F #1F397F #351F7F
triadic
#1F397F #7F1F39 #397F1F
tetradic
#1F397F #7F1F69 #7F651F #1F7F35
square
#1F397F #7F1F69 #7F651F #1F7F35
split-complementary
#1F397F #7F351F #697F1F
monochromatic
#070D1D #13234E #1F397F #2B4FB0 #466CD2

Accessibility & contrast

On white

10.77
#1F397F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#1F397F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F397F
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F397F#FFFFFF#000000##FFFFFF
##1F397F1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064281
Deuteranopia (green-blind)
#00397E
Tritanopia (blue-blind)
#004A56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f397f;
/* rgb */ color: rgb(31, 57, 127);
/* oklch */ color: oklch(36.8% 0.123 265.4);
Tailwind
colors: {
  custom: {
    50: '#696ea5',
    500: '#1f397f',
    950: '#000000',
  },
}
SCSS
$custom: #1f397f;
$custom-light: #696ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f397f",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 127
  },
  "hsl": {
    "h": 223.75,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36805,
    "c": 0.12286,
    "h": 265.4
  },
  "luminance": 0.0475
}

Semantic roles & 50–950 ramp

primary
#1F397F
secondary
#B29548
accent
#B944E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1F397F

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

Preview Lab → · Contrast checker → · Palette generator →

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