#1F3C8D#1F3C8D

#1F3C8D is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.6% C 0.139 H 265.4°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#1F3C8D
RGBrgb(31, 60, 141)
HSLhsl(224, 64%, 34%)
HSVhsv(224, 78%, 55%)
CMYKcmyk(78%, 57.4%, 0%, 44.7%)
CIE-LABlab(27.97, 19.94, -48.08)
CIE-LCHlch(27.97, 52.05, 292.52°)
OKLaboklab(38.63% -0.0112 -0.1387)
OKLCHoklch(38.63% 0.139 265.4)
XYZxyz(6.9870, 5.4453, 25.8770)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3C8D #8D701F
analogous
#1F738D #1F3C8D #391F8D
triadic
#1F3C8D #8D1F3C #3C8D1F
tetradic
#1F3C8D #8D1F73 #8D701F #1F8D39
square
#1F3C8D #8D1F73 #8D701F #1F8D39
split-complementary
#1F3C8D #8D391F #738D1F
monochromatic
#091129 #14275B #1F3C8D #2A51BF #4E73D8

Accessibility & contrast

On white

10.05
#1F3C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#1F3C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3C8D
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3C8D#FFFFFF#000000##FFFFFF
##1F3C8D1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#003D8B
Tritanopia (blue-blind)
#00505E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1f3c8d;
/* rgb */ color: rgb(31, 60, 141);
/* oklch */ color: oklch(38.6% 0.139 265.4);
Tailwind
colors: {
  custom: {
    50: '#6c71af',
    500: '#1f3c8d',
    950: '#000000',
  },
}
SCSS
$custom: #1f3c8d;
$custom-light: #6c71af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3c8d",
  "rgb": {
    "r": 31,
    "g": 60,
    "b": 141
  },
  "hsl": {
    "h": 224.182,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38631,
    "c": 0.13915,
    "h": 265.4
  },
  "luminance": 0.05446
}

Semantic roles & 50–950 ramp

primary
#1F3C8D
secondary
#BB9E4D
accent
#BB41E7
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #1F3C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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