#1F3C8A#1F3C8A

#1F3C8A is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.4% C 0.135 H 265.1°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#1F3C8A
RGBrgb(31, 60, 138)
HSLhsl(224, 63%, 33%)
HSVhsv(224, 78%, 54%)
CMYKcmyk(77.5%, 56.5%, 0%, 45.9%)
CIE-LABlab(27.73, 18.74, -46.61)
CIE-LCHlch(27.73, 50.24, 291.90°)
OKLaboklab(38.38% -0.0115 -0.1344)
OKLCHoklch(38.38% 0.135 265.1)
XYZxyz(6.7668, 5.3573, 24.7173)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3C8A #8A6D1F
analogous
#1F718A #1F3C8A #371F8A
triadic
#1F3C8A #8A1F3C #3C8A1F
tetradic
#1F3C8A #8A1F71 #8A6D1F #1F8A37
square
#1F3C8A #8A1F71 #8A6D1F #1F8A37
split-complementary
#1F3C8A #8A371F #718A1F
monochromatic
#091126 #142658 #1F3C8A #2A52BC #4C72D7

Accessibility & contrast

On white

10.14
#1F3C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#1F3C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3C8A
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3C8A#FFFFFF#000000##FFFFFF
##1F3C8A1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478D
Deuteranopia (green-blind)
#003D88
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f3c8a;
/* rgb */ color: rgb(31, 60, 138);
/* oklch */ color: oklch(38.4% 0.135 265.1);
Tailwind
colors: {
  custom: {
    50: '#6c71ad',
    500: '#1f3c8a',
    950: '#000000',
  },
}
SCSS
$custom: #1f3c8a;
$custom-light: #6c71ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3c8a",
  "rgb": {
    "r": 31,
    "g": 60,
    "b": 138
  },
  "hsl": {
    "h": 223.738,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38377,
    "c": 0.13486,
    "h": 265.1
  },
  "luminance": 0.05358
}

Semantic roles & 50–950 ramp

primary
#1F3C8A
secondary
#BA9C4B
accent
#BA41E6
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1F3C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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