#1F387C#1F387C

#1F387C is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.3% C 0.120 H 265.5°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#1F387C
RGBrgb(31, 56, 124)
HSLhsl(224, 60%, 30%)
HSVhsv(224, 75%, 49%)
CMYKcmyk(75%, 54.8%, 0%, 51.4%)
CIE-LABlab(25.49, 15.93, -41.50)
CIE-LCHlch(25.49, 44.45, 291.00°)
OKLaboklab(36.34% -0.0093 -0.1194)
OKLCHoklch(36.34% 0.12 265.5)
XYZxyz(5.6161, 4.5743, 19.6518)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F387C #7C631F
analogous
#1F667C #1F387C #341F7C
triadic
#1F387C #7C1F38 #387C1F
tetradic
#1F387C #7C1F66 #7C631F #1F7C34
square
#1F387C #7C1F66 #7C631F #1F7C34
split-complementary
#1F387C #7C341F #667C1F
monochromatic
#070C1A #13224B #1F387C #2B4EAD #456AD0

Accessibility & contrast

On white

10.97
#1F387C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#1F387C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F387C
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F387C#FFFFFF#000000##FFFFFF
##1F387C1.0010.971.9210.97
#FFFFFF10.971.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08417E
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#004854
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f387c;
/* rgb */ color: rgb(31, 56, 124);
/* oklch */ color: oklch(36.3% 0.120 265.5);
Tailwind
colors: {
  custom: {
    50: '#686ea2',
    500: '#1f387c',
    950: '#000000',
  },
}
SCSS
$custom: #1f387c;
$custom-light: #686ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f387c",
  "rgb": {
    "r": 31,
    "g": 56,
    "b": 124
  },
  "hsl": {
    "h": 223.871,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36337,
    "c": 0.11977,
    "h": 265.5
  },
  "luminance": 0.04575
}

Semantic roles & 50–950 ramp

primary
#1F387C
secondary
#AF9348
accent
#B945E3
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1F387C

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

Preview Lab → · Contrast checker → · Palette generator →

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