#1F397C#1F397C

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

Color values

HEX#1F397C
RGBrgb(31, 57, 124)
HSLhsl(223, 60%, 30%)
HSVhsv(223, 75%, 49%)
CMYKcmyk(75%, 54%, 0%, 51.4%)
CIE-LABlab(25.78, 15.22, -41.02)
CIE-LCHlch(25.78, 43.76, 290.36°)
OKLaboklab(36.56% -0.0102 -0.118)
OKLCHoklch(36.56% 0.118 265.1)
XYZxyz(5.6650, 4.6722, 19.6681)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F397C #7C621F
analogous
#1F677C #1F397C #341F7C
triadic
#1F397C #7C1F39 #397C1F
tetradic
#1F397C #7C1F67 #7C621F #1F7C34
square
#1F397C #7C1F67 #7C621F #1F7C34
split-complementary
#1F397C #7C341F #677C1F
monochromatic
#070C1A #13224B #1F397C #2B50AD #456CD0

Accessibility & contrast

On white

10.85
#1F397C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F397C
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F397C#FFFFFF#000000##FFFFFF
##1F397C1.0010.851.9310.85
#FFFFFF10.851.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f397c;
/* rgb */ color: rgb(31, 57, 124);
/* oklch */ color: oklch(36.6% 0.118 265.1);
Tailwind
colors: {
  custom: {
    50: '#686ea2',
    500: '#1f397c',
    950: '#000000',
  },
}
SCSS
$custom: #1f397c;
$custom-light: #686ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f397c",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 124
  },
  "hsl": {
    "h": 223.226,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3656,
    "c": 0.11843,
    "h": 265.1
  },
  "luminance": 0.04673
}

Semantic roles & 50–950 ramp

primary
#1F397C
secondary
#AF9248
accent
#B745E3
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1F397C

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

Preview Lab → · Contrast checker → · Palette generator →

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