#1F387F#1F387F

#1F387F is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.6% C 0.124 H 265.8°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#1F387F
RGBrgb(31, 56, 127)
HSLhsl(224, 61%, 31%)
HSVhsv(224, 76%, 50%)
CMYKcmyk(75.6%, 55.9%, 0%, 50.2%)
CIE-LABlab(25.72, 17.13, -43.01)
CIE-LCHlch(25.72, 46.30, 291.72°)
OKLaboklab(36.59% -0.0091 -0.1239)
OKLCHoklch(36.59% 0.124 265.8)
XYZxyz(5.8087, 4.6513, 20.6662)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F387F #7F661F
analogous
#1F687F #1F387F #361F7F
triadic
#1F387F #7F1F38 #387F1F
tetradic
#1F387F #7F1F68 #7F661F #1F7F36
square
#1F387F #7F1F68 #7F661F #1F7F36
split-complementary
#1F387F #7F361F #687F1F
monochromatic
#070D1D #13224E #1F387F #2B4EB0 #466BD2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F387F#FFFFFF#000000##FFFFFF
##1F387F1.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)
#014281
Deuteranopia (green-blind)
#00397E
Tritanopia (blue-blind)
#004955
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f387f;
/* rgb */ color: rgb(31, 56, 127);
/* oklch */ color: oklch(36.6% 0.124 265.8);
Tailwind
colors: {
  custom: {
    50: '#696ea5',
    500: '#1f387f',
    950: '#000000',
  },
}
SCSS
$custom: #1f387f;
$custom-light: #696ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f387f",
  "rgb": {
    "r": 31,
    "g": 56,
    "b": 127
  },
  "hsl": {
    "h": 224.375,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36585,
    "c": 0.12419,
    "h": 265.8
  },
  "luminance": 0.04652
}

Semantic roles & 50–950 ramp

primary
#1F387F
secondary
#B29648
accent
#BA44E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1F387F

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

Preview Lab → · Contrast checker → · Palette generator →

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