#1F397E#1F397E

#1F397E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.7% C 0.121 H 265.3°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#1F397E
RGBrgb(31, 57, 126)
HSLhsl(224, 61%, 31%)
HSVhsv(224, 75%, 49%)
CMYKcmyk(75.4%, 54.8%, 0%, 50.6%)
CIE-LABlab(25.93, 16.03, -42.04)
CIE-LCHlch(25.93, 44.99, 290.87°)
OKLaboklab(36.72% -0.01 -0.121)
OKLCHoklch(36.72% 0.121 265.3)
XYZxyz(5.7928, 4.7233, 20.3410)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F397E #7E641F
analogous
#1F687E #1F397E #341F7E
triadic
#1F397E #7E1F39 #397E1F
tetradic
#1F397E #7E1F68 #7E641F #1F7E34
square
#1F397E #7E1F68 #7E641F #1F7E34
split-complementary
#1F397E #7E341F #687E1F
monochromatic
#070D1C #13234D #1F397E #2B4FAF #466CD1

Accessibility & contrast

On white

10.80
#1F397E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F397E
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F397E#FFFFFF#000000##FFFFFF
##1F397E1.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084280
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#004A55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f397e;
/* rgb */ color: rgb(31, 57, 126);
/* oklch */ color: oklch(36.7% 0.121 265.3);
Tailwind
colors: {
  custom: {
    50: '#696ea4',
    500: '#1f397e',
    950: '#000000',
  },
}
SCSS
$custom: #1f397e;
$custom-light: #696ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f397e",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 126
  },
  "hsl": {
    "h": 223.579,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36723,
    "c": 0.12138,
    "h": 265.3
  },
  "luminance": 0.04724
}

Semantic roles & 50–950 ramp

primary
#1F397E
secondary
#B19448
accent
#B844E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1F397E

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

Preview Lab → · Contrast checker → · Palette generator →

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