#1F387D#1F387D

#1F387D is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.4% C 0.121 H 265.6°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#1F387D
RGBrgb(31, 56, 125)
HSLhsl(224, 60%, 31%)
HSVhsv(224, 75%, 49%)
CMYKcmyk(75.2%, 55.2%, 0%, 51%)
CIE-LABlab(25.56, 16.33, -42.00)
CIE-LCHlch(25.56, 45.07, 291.24°)
OKLaboklab(36.42% -0.0092 -0.1209)
OKLCHoklch(36.42% 0.121 265.6)
XYZxyz(5.6796, 4.5997, 19.9866)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F387D #7D641F
analogous
#1F677D #1F387D #351F7D
triadic
#1F387D #7D1F38 #387D1F
tetradic
#1F387D #7D1F67 #7D641F #1F7D35
square
#1F387D #7D1F67 #7D641F #1F7D35
split-complementary
#1F387D #7D351F #677D1F
monochromatic
#070C1B #13224C #1F387D #2B4EAE #456BD1

Accessibility & contrast

On white

10.94
#1F387D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F387D
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F387D#FFFFFF#000000##FFFFFF
##1F387D1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06417F
Deuteranopia (green-blind)
#00387C
Tritanopia (blue-blind)
#004954
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f387d;
/* rgb */ color: rgb(31, 56, 125);
/* oklch */ color: oklch(36.4% 0.121 265.6);
Tailwind
colors: {
  custom: {
    50: '#696ea3',
    500: '#1f387d',
    950: '#000000',
  },
}
SCSS
$custom: #1f387d;
$custom-light: #696ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f387d",
  "rgb": {
    "r": 31,
    "g": 56,
    "b": 125
  },
  "hsl": {
    "h": 224.043,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36419,
    "c": 0.12125,
    "h": 265.6
  },
  "luminance": 0.046
}

Semantic roles & 50–950 ramp

primary
#1F387D
secondary
#B09448
accent
#B944E3
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1F387D

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

Preview Lab → · Contrast checker → · Palette generator →

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