#1F387B#1F387B

#1F387B is a dark, moderate blue. Relative luminance 0.045; OKLCH L 36.3% C 0.118 H 265.4°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#1F387B
RGBrgb(31, 56, 123)
HSLhsl(224, 60%, 30%)
HSVhsv(224, 75%, 48%)
CMYKcmyk(74.8%, 54.5%, 0%, 51.8%)
CIE-LABlab(25.41, 15.53, -40.99)
CIE-LCHlch(25.41, 43.83, 290.74°)
OKLaboklab(36.25% -0.0094 -0.1179)
OKLCHoklch(36.25% 0.118 265.4)
XYZxyz(5.5531, 4.5491, 19.3205)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F387B #7B621F
analogous
#1F667B #1F387B #341F7B
triadic
#1F387B #7B1F38 #387B1F
tetradic
#1F387B #7B1F66 #7B621F #1F7B34
square
#1F387B #7B1F66 #7B621F #1F7B34
split-complementary
#1F387B #7B341F #667B1F
monochromatic
#060B19 #13224A #1F387B #2B4EAC #446AD0

Accessibility & contrast

On white

10.99
#1F387B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#1F387B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F387B
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F387B#FFFFFF#000000##FFFFFF
##1F387B1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A417D
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#004854
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f387b;
/* rgb */ color: rgb(31, 56, 123);
/* oklch */ color: oklch(36.3% 0.118 265.4);
Tailwind
colors: {
  custom: {
    50: '#686ea2',
    500: '#1f387b',
    950: '#000000',
  },
}
SCSS
$custom: #1f387b;
$custom-light: #686ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f387b",
  "rgb": {
    "r": 31,
    "g": 56,
    "b": 123
  },
  "hsl": {
    "h": 223.696,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36255,
    "c": 0.1183,
    "h": 265.4
  },
  "luminance": 0.0455
}

Semantic roles & 50–950 ramp

primary
#1F387B
secondary
#AE9248
accent
#B845E3
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1F387B

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

Preview Lab → · Contrast checker → · Palette generator →

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