#1F397B#1F397B

#1F397B is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.5% C 0.117 H 264.9°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#1F397B
RGBrgb(31, 57, 123)
HSLhsl(223, 60%, 30%)
HSVhsv(223, 75%, 48%)
CMYKcmyk(74.8%, 53.7%, 0%, 51.8%)
CIE-LABlab(25.70, 14.82, -40.51)
CIE-LCHlch(25.70, 43.14, 290.10°)
OKLaboklab(36.48% -0.0103 -0.1165)
OKLCHoklch(36.48% 0.117 264.9)
XYZxyz(5.6021, 4.6470, 19.3368)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F397B #7B611F
analogous
#1F677B #1F397B #331F7B
triadic
#1F397B #7B1F39 #397B1F
tetradic
#1F397B #7B1F67 #7B611F #1F7B33
square
#1F397B #7B1F67 #7B611F #1F7B33
split-complementary
#1F397B #7B331F #677B1F
monochromatic
#060C19 #13224A #1F397B #2B50AC #446CD0

Accessibility & contrast

On white

10.88
#1F397B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#1F397B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F397B
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F397B#FFFFFF#000000##FFFFFF
##1F397B1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E417D
Deuteranopia (green-blind)
#00397A
Tritanopia (blue-blind)
#004954
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f397b;
/* rgb */ color: rgb(31, 57, 123);
/* oklch */ color: oklch(36.5% 0.117 264.9);
Tailwind
colors: {
  custom: {
    50: '#686ea2',
    500: '#1f397b',
    950: '#000000',
  },
}
SCSS
$custom: #1f397b;
$custom-light: #686ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f397b",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 123
  },
  "hsl": {
    "h": 223.043,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36479,
    "c": 0.11695,
    "h": 264.9
  },
  "luminance": 0.04648
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F397B

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

Preview Lab → · Contrast checker → · Palette generator →

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